fix block

add check name to subscription
This commit is contained in:
2026-01-19 11:59:52 -03:00
parent 2f390ab202
commit 6b472110e2
6 changed files with 531 additions and 386 deletions

View File

@@ -11,6 +11,20 @@ class ConflictError(ServiceError):
super().__init__(HTTPStatus.CONFLICT, msg)
class NotAcceptableError(ServiceError):
def __init__(self, msg: str | dict):
super().__init__(HTTPStatus.NOT_ACCEPTABLE, msg)
class SubscriptionRequiredError(NotAcceptableError): ...
class SubscriptionFrozenError(NotAcceptableError): ...
class SubscriptionConflictError(ConflictError): ...
class OrgNotFoundError(NotFoundError): ...