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,13 @@
from http import HTTPStatus as status
from django.core.exceptions import ValidationError
class ConflictError(Exception):
def __init__(self, validation_error: ValidationError) -> None:
self.validation_error = validation_error
class ForbiddenError(Exception):
def __init__(self, message: str = status.FORBIDDEN.phrase) -> None:
self.message = message