import requests


def direct_download(download_target, disk_target):
    """Downloads a file from a direct url using GET and stores that file
    at a specified location on the local disk

    Arguments:

    download_target: str
        the direct url where the file is located on a remote server
        available for direct download using GET
    disk_target: str
        the destination for the file on this device, do not call this
        function is the file is already downloaded, as it will be overwritten

    Returns:

    success: bool
        a boolean that indicates whether the download was successful is True
        or an error was encountered when False (such as a 404 error)

    """

    response = requests.get(download_target, allow_redirects=True)
    valid_response = response.status_code < 400
    if valid_response:
        with open(disk_target, "wb") as file:
            file.write(response.content)
    return valid_response