OAuthBearerError

exception gafaelfawr.exceptions.OAuthBearerError

Bases: OAuthError

An error that can be returned as a WWW-Authenticate challenge.

Represents the subset of OAuth 2.0 errors defined in RFC 6750 as valid errors to return in a WWW-Authenticate header. The string form of this exception is suitable for use as the error_description attribute of a WWW-Authenticate header.

status_code: int = 400

The status code to use for this HTTP error.