Skip to content

OAuth2ErrorCode

Enum Class

OAuth2ErrorCode

Bases: UnknownEnumMixin, StrEnum

OAuth 2.0 error codes returned by the server Standard OAuth 2.0 error codes used in error responses to indicate the specific type of error that occurred during token operations.

Attributes

AUTHCODE_EXPIRED class-attribute instance-attribute
AUTHCODE_EXPIRED = 'AUTHCODE_EXPIRED'

Authorization code has expired.

CONFLICT class-attribute instance-attribute
CONFLICT = 'CONFLICT'

Request conflicts with the current state of the resource.

INSUFFICIENT_PERMISSIONS class-attribute instance-attribute
INSUFFICIENT_PERMISSIONS = 'INSUFFICIENT_PERMISSIONS'

Insufficient permissions to perform this operation.

INVALID_REQUEST class-attribute instance-attribute
INVALID_REQUEST = 'INVALID_REQUEST'

The request is missing a required parameter, includes an invalid parameter value, or is otherwise malformed.

OAUTH_INVALID_GRANT class-attribute instance-attribute
OAUTH_INVALID_GRANT = 'invalid_grant'
OAUTH_INVALID_REQUEST class-attribute instance-attribute
OAUTH_INVALID_REQUEST = 'invalid_request'
OAUTH_INVALID_SCOPE class-attribute instance-attribute
OAUTH_INVALID_SCOPE = 'invalid_scope'
OAUTH_INVALID_TARGET class-attribute instance-attribute
OAUTH_INVALID_TARGET = 'invalid_target'
OAUTH_RATE_EXCEEDED class-attribute instance-attribute
OAUTH_RATE_EXCEEDED = 'rate_exceeded'
OAUTH_SERVICE_UNAVAILABLE class-attribute instance-attribute
OAUTH_SERVICE_UNAVAILABLE = 'service_unavailable'
OAUTH_UNSUPPORTED_GRANT_TYPE class-attribute instance-attribute
OAUTH_UNSUPPORTED_GRANT_TYPE = 'unsupported_grant_type'
RESOURCE_NOT_FOUND class-attribute instance-attribute
RESOURCE_NOT_FOUND = 'RESOURCE_NOT_FOUND'

Requested resource was not found.

SERVER_ERROR class-attribute instance-attribute
SERVER_ERROR = 'server_error'

Internal server error occurred.

SERVICE_QUOTA_EXCEEDED class-attribute instance-attribute
SERVICE_QUOTA_EXCEEDED = 'SERVICE_QUOTA_EXCEEDED'

Request would cause a service quota to be exceeded.

TOKEN_EXPIRED class-attribute instance-attribute
TOKEN_EXPIRED = 'TOKEN_EXPIRED'

Token has expired.

USER_CREDENTIALS_CHANGED class-attribute instance-attribute
USER_CREDENTIALS_CHANGED = 'USER_CREDENTIALS_CHANGED'

User credentials have been changed.