def _check_response(response):
    """Check a request response.

    Parameters
    ----------
    response : object like requests.models.Response
        The response to check.

    Returns
    -------
    out : boolean
        True if everything seems fine. False otherwise.

    """
    if response.status_code == 200:
        print('Frost return status: {}'.format(response.status_code))
        return True
    ret = response.json()
    print('Could not get Frost data: {}'.format(response.status_code))
    print('Message: {}'.format(ret['error']['message']))
    print('Reason: {}'.format(ret['error']['reason']))
    return False