21 lines
664 B
Python
Raw Normal View History

2023-05-15 08:51:32 +08:00
from libs.exception import BaseHTTPException
class AlreadySetupError(BaseHTTPException):
error_code = 'already_setup'
2023-05-22 17:39:28 +08:00
description = "Dify has been successfully installed. Please refresh the page or return to the dashboard homepage."
2023-05-15 08:51:32 +08:00
code = 403
class NotSetupError(BaseHTTPException):
error_code = 'not_setup'
2023-05-22 17:39:28 +08:00
description = "Dify has not been initialized and installed yet. " \
"Please proceed with the initialization and installation process first."
2023-05-15 08:51:32 +08:00
code = 401
class AccountNotLinkTenantError(BaseHTTPException):
error_code = 'account_not_link_tenant'
description = "Account not link tenant."
code = 403