def METHOD_NAME(response):
    """Raises error class with appropriate msg for the response"""
    try:
        json_response = response.json()
    except Exception:
        json_response = {}
    status_code = response.status_code
    msg = json_response.get(
        "message",
        STATUS_CODE_EXCEPTION_MAPPING.get(status_code, {}).get(
            "message", "Unknown Error"
        ),
    )
    message = "HTTP-error-code: {}, Error: {}".format(status_code, msg)
    exc = get_exception_for_status_code(status_code)
    raise exc(message) from None