mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
refactoring
This commit is contained in:
@@ -28,11 +28,13 @@ class HttpError(Exception):
|
||||
|
||||
|
||||
class UnauthorizedError(HttpError):
|
||||
pass
|
||||
def __init__(self) -> None:
|
||||
super().__init__("Unauthorized")
|
||||
|
||||
|
||||
class ForbiddenError(HttpError):
|
||||
pass
|
||||
def __init__(self) -> None:
|
||||
super().__init__("Forbidden")
|
||||
|
||||
|
||||
# =====
|
||||
|
||||
Reference in New Issue
Block a user