PermissionDeniedError¶
- exception controller.exceptions.PermissionDeniedError(message, location=None, field_path=None)¶
Bases:
ClientRequestError
Attempt to access a resource for another user.
- 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.