import requests


def download_file(url: str):
    """Download file from provided URL

    Arguments:
        url {str} -- file's URL

    Raises:
        SystemExit: is raised when incorrect URL is provided

    Returns:
        [type] -- content of downloaded file
    """
    response = requests.get(url)
    if response.status_code != 200:
        raise SystemExit('Unable to download data file from URL: {}. Reason: {} {}'.format(url, response.status_code, response.reason))
    return response.content