feat: added boilerplate code

This commit is contained in:
ITQ
2025-02-18 23:56:28 +03:00
parent 2a4cf973a9
commit 21fa9a55cc
15 changed files with 927 additions and 0 deletions
@@ -0,0 +1,24 @@
from http import HTTPStatus as status
from typing import Any
from ninja import Schema
class BadRequestError(Schema):
detail: Any
class UnauthorizedError(Schema):
detail: str = status.UNAUTHORIZED.phrase
class ForbiddenError(Schema):
detail: str = status.FORBIDDEN.phrase
class NotFoundError(Schema):
detail: str = status.NOT_FOUND.phrase
class ConflictError(Schema):
detail: Any