mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
exceptions: Add AccessDeniedError.
This commit is contained in:
@@ -375,3 +375,14 @@ class InvitationError(JsonableError):
|
||||
self.errors: List[Tuple[str, str, bool]] = errors
|
||||
self.sent_invitations: bool = sent_invitations
|
||||
self.license_limit_reached: bool = license_limit_reached
|
||||
|
||||
|
||||
class AccessDeniedError(JsonableError):
|
||||
http_status_code = 403
|
||||
|
||||
def __init__(self) -> None:
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def msg_format() -> str:
|
||||
return _("Access denied")
|
||||
|
||||
Reference in New Issue
Block a user