InvalidTokenError

exception gafaelfawr.exceptions.InvalidTokenError

Bases: OAuthBearerError

The provided token was invalid.

This corresponds to the invalid_token error in RFC 6750: “The access token provided is expired, revoked, malformed, or invalid for other reasons.”

error: ClassVar[str] = 'invalid_token'

The RFC 6749 or RFC 6750 error code for this exception.

message: ClassVar[str] = 'Invalid token'

The summary message to use when logging this error.

status_code: int = 401

The status code to use for this HTTP error.