mirror of
https://github.com/langgenius/dify.git
synced 2026-08-24 12:32:54 -04:00
62 lines
1.8 KiB
Python
62 lines
1.8 KiB
Python
from libs.exception import BaseHTTPException
|
|
|
|
|
|
class CurrentWorkspaceArchivedError(BaseHTTPException):
|
|
error_code = "current_workspace_archived"
|
|
description = "The current workspace has been archived."
|
|
code = 409
|
|
|
|
|
|
class RepeatPasswordNotMatchError(BaseHTTPException):
|
|
error_code = "repeat_password_not_match"
|
|
description = "New password and repeat password does not match."
|
|
code = 400
|
|
|
|
|
|
class CurrentPasswordIncorrectError(BaseHTTPException):
|
|
error_code = "current_password_incorrect"
|
|
description = "Current password is incorrect."
|
|
code = 400
|
|
|
|
|
|
class InvalidAccountPasswordRequestError(BaseHTTPException):
|
|
error_code = "invalid_account_password"
|
|
description = "The password does not satisfy the account password policy."
|
|
code = 400
|
|
|
|
|
|
class InvalidInvitationCodeError(BaseHTTPException):
|
|
error_code = "invalid_invitation_code"
|
|
description = "Invalid invitation code."
|
|
code = 400
|
|
|
|
|
|
class MissingInvitationCodeRequestError(BaseHTTPException):
|
|
error_code = "missing_invitation_code"
|
|
description = "Invitation code is required."
|
|
code = 400
|
|
|
|
|
|
class AccountAlreadyInitedError(BaseHTTPException):
|
|
error_code = "account_already_inited"
|
|
description = "The account has been initialized. Please refresh the page."
|
|
code = 400
|
|
|
|
|
|
class AccountNotInitializedError(BaseHTTPException):
|
|
error_code = "account_not_initialized"
|
|
description = "The account has not been initialized yet. Please proceed with the initialization process first."
|
|
code = 400
|
|
|
|
|
|
class InvalidAccountDeletionCodeError(BaseHTTPException):
|
|
error_code = "invalid_account_deletion_code"
|
|
description = "Invalid account deletion code."
|
|
code = 400
|
|
|
|
|
|
class InvalidMemberRoleError(BaseHTTPException):
|
|
error_code = "invalid_role"
|
|
description = "Invalid role."
|
|
code = 400
|