API Error Codes

This is the list with possible error codes returned by the API.
InvalidTokenMissingPrivileges: Not enough privilegesInputValidationError(various descriptions about invalid input validation)InternalDatabaseErrorInternalErrorUserNotFound: This user does not existUserExistsError: This username already existsAddressExistsError: Address already existsAddressNotFound: Invalid or unknown email address identifierChangeNotAllowed: Can not change special addressWildcardNotPermitted: Can not set wildcard address as defaultAspNotFound: Invalid or unknown ASP keyInvalidAuthScope: Profile file requires either imap or pop3 and smtp scopesAuthFailed: Authentication failedDkimNotFound: This domain does not existAliasExists: This domain alias already existsAliasNotFound: This alias does not existFilterNotFound: This filter does not existNoSuchMailbox: This mailbox does not existMailboxExistsError: This mailbox already existsMessageNotFound: Invalid message identifierOverQuotaError: User is over quotaEmptyMessage: Empty message providedFileNotFound: This file does not existInsecurePasswordError: Provided password was found from breached passwords listERRCOMPOSE: Could not queue message for deliveryKeyGenerateError: Failed to generate private or public keyInternalConfigError: Invalid encryption settingsHashErrorUserUpdateFail: Could not update userTotpEnabled: TOTP 2FA is already enabled for this userQRError: Failed to generate QR codeTotpDisabled: TOTP 2FA is not initialized for this userRateLimitedError: Authentication was rate limited.WebAuthnDisabled: WebAuthn/FIDO2 2FA is not enabled for this userCustomEnabled: Custom 2FA is already enabled for this userCustomDisabled: Custom 2FA is not enabled for this userChallengeNotFound: WebAuthn challenge was not foundCredentialsNotFound: WebAuthn credentials were not foundNoUpdates: Nothing was updatedTooMany: Instance limit hitWebhookNotFound: This webhook does not existCertNotFound: This certificate does not existUserDisabled: User account is disabledMessageRejected: Message was rejectedStoreError: Failed to store messageDroppedByPolicy: Message was dropped by policyDisallowedMailboxMethod: This operation is not allowed on this mailboxDeleteInProgress: User deletion is already in progressRestoreTaskNotFound: Restore task was not foundDownloadRateLimited: Download rate limit exceededUploadRateLimited: Upload rate limit exceeded