You've already forked Promocode-API
mirror of
https://github.com/devitq/Promocode-API.git
synced 2026-05-22 22:07:12 +00:00
21 lines
344 B
Python
21 lines
344 B
Python
from http import HTTPStatus as status
|
|
from typing import Any
|
|
|
|
from ninja import Schema
|
|
|
|
|
|
class UnauthorizedError(Schema):
|
|
detail: str = status.UNAUTHORIZED.phrase
|
|
|
|
|
|
class NotFoundError(Schema):
|
|
detail: str = status.NOT_FOUND.phrase
|
|
|
|
|
|
class BadRequestError(Schema):
|
|
detail: Any
|
|
|
|
|
|
class UniqueConstraintError(Schema):
|
|
detail: Any
|