mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
21 lines
664 B
Python
21 lines
664 B
Python
from libs.exception import BaseHTTPException
|
|
|
|
|
|
class AlreadySetupError(BaseHTTPException):
|
|
error_code = 'already_setup'
|
|
description = "Dify has been successfully installed. Please refresh the page or return to the dashboard homepage."
|
|
code = 403
|
|
|
|
|
|
class NotSetupError(BaseHTTPException):
|
|
error_code = 'not_setup'
|
|
description = "Dify has not been initialized and installed yet. " \
|
|
"Please proceed with the initialization and installation process first."
|
|
code = 401
|
|
|
|
|
|
class AccountNotLinkTenantError(BaseHTTPException):
|
|
error_code = 'account_not_link_tenant'
|
|
description = "Account not link tenant."
|
|
code = 403
|