import requests


def request(url, params=None):
    """
    Parameter url: url to request
    Output: JSON ready response from the server
    Logic:
        - Request the url
        - Check for successful status code from server
        - Return the JSON response
    """
    response = requests.get(url, params=params)
    response.raise_for_status()
    return response.json()