from apollo_utils.service.exceptions import ClientAPIError from http import HTTPStatus as http_status class APIUnauthorized(ClientAPIError): """Raised if request to API failed with authorization error. This exception possibly means that app configuration is incorrect. """ detail: str = "Authentication failed" code = "unauthorized" status_code: int = http_status.UNAUTHORIZED class APIMisconfigured(ClientAPIError): """Raised if API configuration is incorrect.""" detail: str = "Please set all necessary client settings"