'Raises stored :class:`APIError`, if one occurred.'

def _raise_for_status(self, response):

    try:
        response.raise_for_status()
    except requests.exceptions.HTTPError as e:
        raise create_api_error_from_http_exception(e)
