def make_get_request(session, url, headers, error, stream=False):
    'Make a get request.'
    response = session.get(url=url, headers=headers, stream=stream, timeout=60)
    if (response.status_code == 401):
        error(f'Authentication failed on URL {url}')
    elif (response.status_code == 404):
        error(f'BaseSpace file {url} not found')
    elif (response.status_code != 200):
        error(f'Failed to retrieve content from {url}')
    return response
Make a get request.
def make_get_request(session, url, headers, error, stream=False):
    
    response = session.get(url=url, headers=headers, stream=stream, timeout=60)
    if (response.status_code == 401):
        error(f'Authentication failed on URL {url}')
    elif (response.status_code == 404):
        error(f'BaseSpace file {url} not found')
    elif (response.status_code != 200):
        error(f'Failed to retrieve content from {url}')
    return response