NoScopesError

exception gafaelfawr.exceptions.NoScopesError(message, location=None, field_path=None)

Bases: InputValidationError

The user has no valid scopes and therefore cannot log in.

Parameters:
error: ClassVar[str] = 'permission_denied'

Used as the type field of the error message.

Should be overridden by any subclass.

status_code: ClassVar[int] = 403

HTTP status code for this type of validation error.