mirror of
https://github.com/langgenius/dify.git
synced 2025-06-27 05:30:04 +00:00
20 lines
472 B
Python
20 lines
472 B
Python
![]() |
from libs.exception import BaseHTTPException
|
||
|
|
||
|
|
||
|
class AlreadySetupError(BaseHTTPException):
|
||
|
error_code = 'already_setup'
|
||
|
description = "Application already setup."
|
||
|
code = 403
|
||
|
|
||
|
|
||
|
class NotSetupError(BaseHTTPException):
|
||
|
error_code = 'not_setup'
|
||
|
description = "Application not setup."
|
||
|
code = 401
|
||
|
|
||
|
|
||
|
class AccountNotLinkTenantError(BaseHTTPException):
|
||
|
error_code = 'account_not_link_tenant'
|
||
|
description = "Account not link tenant."
|
||
|
code = 403
|