import requests


def query_url(url):
    """ - Performs HTTP GET to the URL passed in params, then:
         * Returns response container if HTTP 200 or 404
         * Raise exception for other HTTP response codes. i.e >500 """
    server_response = requests.get(url)
    if server_response.status_code == 200:
        return server_response
    elif server_response.status_code == 404:
        return server_response
    else:
        server_response.raise_for_status()