Underground-Digital/Workflow-Engine
0
1from libs.exception import BaseHTTPException2 3 4class AlreadySetupError(BaseHTTPException):5 error_code = "already_setup"6 description = "Dify has been successfully installed. Please refresh the page or return to the dashboard homepage."7 code = 4038 9 10class NotSetupError(BaseHTTPException):11 error_code = "not_setup"12 description = (13 "Dify has not been initialized and installed yet. "14 "Please proceed with the initialization and installation process first."15 )16 code = 40117 18 19class NotInitValidateError(BaseHTTPException):20 error_code = "not_init_validated"21 description = "Init validation has not been completed yet. Please proceed with the init validation process first."22 code = 40123 24 25class InitValidateFailedError(BaseHTTPException):26 error_code = "init_validate_failed"27 description = "Init validation failed. Please check the password and try again."28 code = 40129 30 31class AccountNotLinkTenantError(BaseHTTPException):32 error_code = "account_not_link_tenant"33 description = "Account not link tenant."34 code = 40335 36 37class AlreadyActivateError(BaseHTTPException):38 error_code = "already_activate"39 description = "Auth Token is invalid or account already activated, please check again."40 code = 40341 42 43class NotAllowedCreateWorkspace(BaseHTTPException):44 error_code = "not_allowed_create_workspace"45 description = "Workspace not found, please contact system admin to invite you to join in a workspace."46 code = 40047 48 49class AccountBannedError(BaseHTTPException):50 error_code = "account_banned"51 description = "Account is banned."52 code = 40053 54 55class NotAllowedRegister(BaseHTTPException):56 error_code = "unauthorized"57 description = "Account not found."58 code = 40059 60 61class EmailSendIpLimitError(BaseHTTPException):62 error_code = "email_send_ip_limit"63 description = "Too many emails have been sent from this IP address recently. Please try again later."64 code = 42965 