ErrorCode: {
    addUserToOrganizationFailed: "add_user_to_organization_failed";
    allPredicatesFailed: "all_predicates_failed";
    alreadyExists: "already_exists";
    apiError: "api_error";
    appInitializationFailed: "app_initialization_failed";
    checkTokenError: "check_token_error";
    emailNotVerified: "email_not_verified";
    featureDisabled: "feature_disabled";
    incorrectOrganizationRole: "incorrect_organization_role";
    internalServerError: "internal_server_error";
    invalidAdapterModification: "invalid_adapter_modification";
    invalidApplyParameter: "invalid_apply_parameter";
    invalidExpandParameter: "invalid_expand_parameter";
    invalidFilterParameter: "invalid_filter_parameter";
    invalidOrderByParameter: "invalid_order_by_parameter";
    invitationInvalid: "invitation_invalid";
    isOrganizationLastOwner: "organization_last_owner";
    isOrganizationNotNormal: "organization_not_normal";
    loginError: "login_error";
    messageNotBelongToUser: "message_not_belong_to_user";
    messageTemplateNotAdmin: "message_template_not_admin";
    missAuthEncSignSecret: "miss_auth_enc_sign_secret";
    noOrdersWithAllowedStatus: "no_orders_with_allowed_status";
    noPermission: "no_permission";
    noSingleEmailAddress: "no_single_email_address";
    notFound: "not_found";
    notFoundRoute: "route_not_found";
    oAuthRedirectNotAuthorized: "invalid_redirect_url";
    oauthError: "oauth_error";
    onetimePurposeError: "onetime_purpose_error";
    parseTokenError: "parse_token_error";
    passwordDoesNotMeetRequirements: "password_does_not_meet_requirements";
    passwordResetInvalid: "password_reset_invalid";
    requiresPrivateMessage: "requires_private_message";
    schemaMismatchError: "schema_mismatch_error";
    sendGridEmailError: "sendgrid_email_error";
    sessionError: "session_error";
    shortAuthEncSignSecret: "short_auth_enc_sign_secret";
    tokenFailsSecurityCheck: "token_fails_security_check";
    tokenInvalidated: "token_invalidated";
    topicNotPublic: "topic_not_public";
    twoFactorInvalid: "verify_2fa_error";
    uploadAborted: "upload_aborted";
    uploadFailed: "upload_failed";
    userCannotChangeFromOwner: "user_cannot_change_from_owner";
    userHasNoEmail: "user_has_no_email";
    userIsLocked: "user_is_locked";
    userNotAllowedUpdateOwnerWithSameName: "user_not_allowed_create_organization";
    userNotSubscribed: "user_not_subscribed";
    verificationCodeInvalid: "verification_code_invalid";
    wrongParameter: "wrong_parameter";
} = ...

Error codes for the application, including new codes for frontend framework.

Type declaration

  • Readonly addUserToOrganizationFailed: "add_user_to_organization_failed"

    Error occurred while adding user to organization

  • Readonly allPredicatesFailed: "all_predicates_failed"

    Occurs when a combination of multiple validators fails (e.g. when using security.some())

  • Readonly alreadyExists: "already_exists"

    Occurs when the given item already exists (fails uniqueness constraint)

  • Readonly apiError: "api_error"

    Error occurred when trying to communicate with the API

  • Readonly appInitializationFailed: "app_initialization_failed"

    An issue occurred while starting up the app

  • Readonly checkTokenError: "check_token_error"

    Occurs when the wrong type of token is used for an authentication method

  • Readonly emailNotVerified: "email_not_verified"

    Logged in user's email is not verified

  • Readonly featureDisabled: "feature_disabled"

    Feature this endpoint is connected to is currently disabled

  • Readonly incorrectOrganizationRole: "incorrect_organization_role"

    User does not have the correct role for this action

  • Readonly internalServerError: "internal_server_error"

    Generic 500 error (e.g. DB error or similar)

  • Readonly invalidAdapterModification: "invalid_adapter_modification"

    Occurs when adapter modification cannot be performed

  • Readonly invalidApplyParameter: "invalid_apply_parameter"

    Occurs when using the $apply param incorrectly

  • Readonly invalidExpandParameter: "invalid_expand_parameter"

    Occurs when using the $expand param incorrectly

  • Readonly invalidFilterParameter: "invalid_filter_parameter"

    Occurs when using the $filter param incorrectly

  • Readonly invalidOrderByParameter: "invalid_order_by_parameter"

    Occurs when using the $orderBy param incorrectly

  • Readonly invitationInvalid: "invitation_invalid"

    Invitation code is expired or otherwise invalid

  • Readonly isOrganizationLastOwner: "organization_last_owner"

    User is the final owner on this organization and so cannot be removed

  • Readonly isOrganizationNotNormal: "organization_not_normal"

    Organization status is locked or otherwise unusable status

  • Readonly loginError: "login_error"

    Incorrect username/password

  • Readonly messageNotBelongToUser: "message_not_belong_to_user"

    The given message does not belong to the logged in user

  • Readonly messageTemplateNotAdmin: "message_template_not_admin"

    The given message template is not an admin-owned message template

  • Readonly missAuthEncSignSecret: "miss_auth_enc_sign_secret"

    Occurs when auth secret environment variables have not been provided

  • Readonly noOrdersWithAllowedStatus: "no_orders_with_allowed_status"

    No orders exist for this user and target that are in a valid status

  • Readonly noPermission: "no_permission"

    Generic 403 error: You do not have permission over the given resource

  • Readonly noSingleEmailAddress: "no_single_email_address"

    Either zero or more than one user exists with the given email address, when we need to narrow to a single email

  • Readonly notFound: "not_found"

    Generic 404 error: Item not found/does not exist in DB

  • Readonly notFoundRoute: "route_not_found"

    404 error: Route/method not found

  • Readonly oAuthRedirectNotAuthorized: "invalid_redirect_url"

    Redirect url provided for OAuth is not set as allowed

  • Readonly oauthError: "oauth_error"

    Generic oauth error

  • Readonly onetimePurposeError: "onetime_purpose_error"

    Onetime token is used for the wrong purpose

  • Readonly parseTokenError: "parse_token_error"

    Occurs when the given token could not be parsed (e.g. invalid format)

  • Readonly passwordDoesNotMeetRequirements: "password_does_not_meet_requirements"

    Password does not meet the minimum requirements as configured

  • Readonly passwordResetInvalid: "password_reset_invalid"

    Password reset code is expired or otherwise invalid

  • Readonly requiresPrivateMessage: "requires_private_message"

    The given validation requires the private chat flag to be set

  • Readonly schemaMismatchError: "schema_mismatch_error"

    Occurs when a schema validation does not match the given request/response

  • Readonly sendGridEmailError: "sendgrid_email_error"

    Occurs when an email fails to send using SendGrid

  • Readonly sessionError: "session_error"

    Occurs when a issue occurs with the session service

  • Readonly shortAuthEncSignSecret: "short_auth_enc_sign_secret"

    Occurs when auth secret environment variables are not long enough to be secure

  • Readonly tokenFailsSecurityCheck: "token_fails_security_check"

    Occurs when the given token is valid, but fails security checks (e.g. IP address mismatch, user agent mismatch)

  • Readonly tokenInvalidated: "token_invalidated"

    Token has been invalidated and can no longer be used

  • Readonly topicNotPublic: "topic_not_public"

    The topic is not public

  • Readonly twoFactorInvalid: "verify_2fa_error"

    Two factor code does not exist or is otherwise invalid

  • Readonly uploadAborted: "upload_aborted"

    Upload of a file was cancelled (by user or system process)

  • Readonly uploadFailed: "upload_failed"

    Upload of a file was unsuccessful

  • Readonly userCannotChangeFromOwner: "user_cannot_change_from_owner"

    User cannot change their own role away from owner

  • Readonly userHasNoEmail: "user_has_no_email"

    User has no email address and cannot have mail sent to them

  • Readonly userIsLocked: "user_is_locked"

    User is locked and can't be interacted with

  • Readonly userNotAllowedUpdateOwnerWithSameName: "user_not_allowed_create_organization"

    User already has an organization with this name

  • Readonly userNotSubscribed: "user_not_subscribed"

    User is not subscribed to this topic and cannot perform this action

  • Readonly verificationCodeInvalid: "verification_code_invalid"

    Verification email code is expired or otherwise invalid

  • Readonly wrongParameter: "wrong_parameter"

    Generic 400 error: Incorrect parameter provided

Generated using TypeDoc