chore: restructured project

This commit is contained in:
ITQ
2025-03-07 19:32:09 +03:00
parent bfb7ad901a
commit 0a35951c62
178 changed files with 304 additions and 376 deletions
+23
View File
@@ -0,0 +1,23 @@
from typing import Any
class HTTPError(Exception):
pass
class BadRequestError(HTTPError):
def __init__(self, detail: Any) -> None:
super().__init__(f"Bad Request: {detail}")
self.detail = detail
class ForbiddenError(HTTPError):
def __init__(self, detail: str = "Forbidden") -> None:
super().__init__(f"Forbidden: {detail}")
self.detail = detail
class NotFoundError(HTTPError):
def __init__(self, detail: str = "Not Found") -> None:
super().__init__(f"Not Found: {detail}")
self.detail = detail