def METHOD_NAME(cls, response: requests.models.Response):
    if response.status_code not in [200, 201, 202, 204]:
        err_msg = cls._get_error_msg_from_response(response)
        if 400 <= response.status_code < 500:
            err_msg = "%s Client Error: %s for url: %s" % (response.status_code, err_msg, response.url)
        elif 500 <= response.status_code < 600:
            err_msg = "%s Server Error: %s for url: %s" % (response.status_code, err_msg, response.url)
        raise requests.exceptions.HTTPError(err_msg, response=response)