import requests


def get_request(uri):
    """
    Make an HTTP GET request to the (EDR) Server at `uri`.

    """
    response = None
    status_code = None
    errors = None
    print(uri)
    try:
        r = requests.get(uri)
    except Exception as e:
        errors = e.__class__.__name__
    else:
        response = r.json()
        status_code = r.status_code
        if "code" in response.keys():
            message_key_name = list(set(response.keys()) - set(["code"]))[0]
            status_code = response["code"]
            errors = response[message_key_name]
    return response, status_code, errors