import aiohttp


async def handle_response(response: aiohttp.ClientResponse):
    """Handle response received by aiohttp requests

    Args:
        response (aiohttp.ClientResponse): Response object return by an aiohttp request.

    Returns:
        dict: Containing the JSON values.

    """
    if response.ok:
        return await response.json()