PermissionDeniedError

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

Bases: InputValidationError

The user does not have permission to perform this operation.

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.