Exceptions¶
General Exceptions¶
- exception arya_api_framework.errors.FrameworkException¶
The core exception for all exceptions used in the API framework.
- exception arya_api_framework.errors.MISSING¶
Raised when something is missing.
This often serves as an alternative to a
Nonevalue when that may actually carry meaning.
- exception arya_api_framework.errors.ValidationError¶
Raised when validating a variable’s type.
Client Exceptions¶
- exception arya_api_framework.errors.ClientError¶
The parent exception for any client-specific errors.
- exception arya_api_framework.errors.AsyncClientError¶
- This exception inherits from ClientError.
The parent exception for any async client-specific errors.
- exception arya_api_framework.errors.SyncClientError¶
- This exception inherits from ClientError.
The parent exception for any sync client-specific errors.
Request Exceptions¶
- exception arya_api_framework.errors.ResponseParseError(raw_response)¶
- This exception inherits from ClientError.
The exception for failure to parse the response to request.
This is usually raised if the response body was not readable by
json.loads().
- exception arya_api_framework.errors.HTTPError(response)¶
The base exception for any request errors.
See HTTP Status Codes for information about HTTP status codes.
- exception arya_api_framework.errors.HTTPRedirect(response)¶
- This exception inherits from HTTPError.
Raised for any
3xx Redirectionresponses.These codes indicate that further action needs to be taken by the user in order to fulfill the request.
See 3xx Redirect for information about
3xxresponses.
- exception arya_api_framework.errors.HTTPClientError(response)¶
- This exception inherits from HTTPError.
Raised for any
4xx Client Errorresponses.These codes occur when an error has occurred as a result of the client application or user input, such as a malformed request.
See 4xx Client Error for information about
4xxresponses.
- exception arya_api_framework.errors.HTTPServerError(response)¶
- This exception inherits from HTTPError.
Raised for any
5xx Server Errorresponses.These codes occur when the server is aware that is has made an error, or is incapable of performing the request.
See 5xx Server Error for information about
5xxresponses.
300 Errors¶
- exception arya_api_framework.errors.HTTPMultipleChoices(response)¶
- This exception inherits from HTTPRedirect.
- exception arya_api_framework.errors.HTTPMovedPermanently(response)¶
- This exception inherits from HTTPRedirect.
- exception arya_api_framework.errors.HTTPFound(response)¶
- This exception inherits from HTTPRedirect.
- exception arya_api_framework.errors.HTTPSeeOther(response)¶
- This exception inherits from HTTPRedirect.
- exception arya_api_framework.errors.HTTPNotModified(response)¶
- This exception inherits from HTTPRedirect.
- exception arya_api_framework.errors.HTTPUseProxy(response)¶
- This exception inherits from HTTPRedirect.
- exception arya_api_framework.errors.HTTPReserved(response)¶
- This exception inherits from HTTPRedirect.
- exception arya_api_framework.errors.HTTPTemporaryRedirect(response)¶
- This exception inherits from HTTPRedirect.
- exception arya_api_framework.errors.HTTPPermanentRedirect(response)¶
- This exception inherits from HTTPRedirect.
400 Errors¶
- exception arya_api_framework.errors.HTTPBadRequest(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPUnauthorized(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPPaymentRequired(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPForbidden(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPNotFound(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPMethodNotAllowed(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPNotAcceptable(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPProxyAuthenticationRequired(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPRequestTimeout(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPConflict(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPGone(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPLengthRequired(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPPreconditionFailed(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPRequestEntityTooLarge(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPRequestUriTooLong(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPUnsupportedMediaType(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPRequestedRangeNotSatisfiable(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPExpectationFailed(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPImATeapot(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPMisdirectedRequest(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPUnprocessableEntity(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPFailedDependency(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPTooEarly(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPUpgradeRequired(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPPreconditionRequired(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPTooManyRequests(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPRequestHeaderFieldsTooLarge(response)¶
- This exception inherits from HTTPClientError.
- This exception inherits from HTTPClientError.
500 Errors¶
- exception arya_api_framework.errors.HTTPInternalServerError(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPNotImplemented(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPBadGateway(response)¶
- This exception inherits from HTTPClientError.
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPGatewayTimeout(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPHttpServerVersionNotSupported(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPVariantAlsoNegotiates(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPInsufficientStorage(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPLoopDetected(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPNotExtended(response)¶
- This exception inherits from HTTPClientError.
- exception arya_api_framework.errors.HTTPNetworkAuthenticationRequired(response)¶
- This exception inherits from HTTPClientError.