error.py 472 B

12345678910111213141516171819
  1. from libs.exception import BaseHTTPException
  2. class AlreadySetupError(BaseHTTPException):
  3. error_code = 'already_setup'
  4. description = "Application already setup."
  5. code = 403
  6. class NotSetupError(BaseHTTPException):
  7. error_code = 'not_setup'
  8. description = "Application not setup."
  9. code = 401
  10. class AccountNotLinkTenantError(BaseHTTPException):
  11. error_code = 'account_not_link_tenant'
  12. description = "Account not link tenant."
  13. code = 403