exception gafaelfawr.exceptions.InsufficientScopeError

Bases: OAuthBearerError

The provided token does not have the right authorization scope.

This corresponds to the insufficient_scope error in RFC 6750: “The request requires higher privileges than provided by the access token.”

error: ClassVar[str] = 'insufficient_scope'

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

message: ClassVar[str] = 'Permission denied'

The summary message to use when logging this error.

status_code: int = 403

The status code to use for this HTTP error.