| 1234567891011121314151617181920212223242526272829303132333435363738394041 | from libs.exception import BaseHTTPExceptionclass AlreadySetupError(BaseHTTPException):    error_code = "already_setup"    description = "Dify has been successfully installed. Please refresh the page or return to the dashboard homepage."    code = 403class 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 = 401class NotInitValidateError(BaseHTTPException):    error_code = "not_init_validated"    description = "Init validation has not been completed yet. Please proceed with the init validation process first."    code = 401class InitValidateFailedError(BaseHTTPException):    error_code = "init_validate_failed"    description = "Init validation failed. Please check the password and try again."    code = 401class AccountNotLinkTenantError(BaseHTTPException):    error_code = "account_not_link_tenant"    description = "Account not link tenant."    code = 403class AlreadyActivateError(BaseHTTPException):    error_code = "already_activate"    description = "Auth Token is invalid or account already activated, please check again."    code = 403
 |