The following exception classes may be raised by EarthOne client APIs when an error in a client request is encountered.
Exceptions raised by HTTP clients. |
HTTP Exceptions
Exceptions raised by HTTP clients.
- exception AuthError[source]
Bases:
ClientErrorAuthentication error, improperly supplied credentials.
- exception BadRequestError[source]
Bases:
ClientErrorClient request with incorrect parameters.
- status = 400
- exception ConfigError[source]
Bases:
ExceptionConfiguration error during initial configuration of the library.
- exception ConflictError[source]
Bases:
ClientErrorClient request conflicts with existing state.
- status = 409
- exception ForbiddenError[source]
Bases:
ClientErrorClient request lacks necessary permissions.
- status = 403
- exception GatewayTimeoutError[source]
Bases:
ServerErrorTimeout from the gateway after failing to route request to destination service.
- status = 504
- exception GoneError[source]
Bases:
ClientErrorClient request to a URL which has been permanently removed.
- status = 410
- exception MethodNotAllowedError[source]
Bases:
ClientErrorRequested nethod not supported by the resource.
- status = 405
- exception NotFoundError[source]
Bases:
ClientErrorResource not found.
- status = 404
- exception OauthError[source]
Bases:
AuthErrorAuthentication error, failure from OAuth authentication service.
- exception ProxyAuthenticationRequiredError(message, proxy_authenticate=None)[source]
Bases:
ClientErrorClient request needs proxy authentication.
- status
The status code of the error response.
- Type:
int
- proxy_authenticate
A ProxyAuthenticate header if found in the response.
- Type:
Optional[str]
- status = 407
- exception RateLimitError(message, retry_after=None)[source]
Bases:
ClientErrorClient request exceeds rate limits.
The retry_after member will contain any time limit returned in the response.
Construct a new instance.
- Parameters:
message (str) – The error message.
retry_after (str or None) – An indication of a
retry-aftertimeout specified by the error response.
- status = 429
- exception RequestCancellationError[source]
Bases:
ClientErrorClient cancelled the request and no status or response was received.
- exception RetryWithError[source]
Bases:
ClientErrorVector service query request timed out.
- status = 449
- exception UnauthorizedError[source]
Bases:
ClientErrorClient request lacking authentication.
- status = 401
- exception ValidationError[source]
Bases:
BadRequestErrorClient request with invalid parameters.
- status = 422