Error Code Reference
Auto-generated from
apps/backend/src/constants/errors.constants.ts. Do not edit manually — runpnpm run generate-error-docsto regenerate.
400 Bad Request
| Code | Constant Name | Message |
|---|---|---|
| 400000 | BAD_REQUEST |
Bad request |
| 400001 | NO_TOKEN_PROVIDED |
No token provided |
| 400002 | DOMAIN_NOT_VERIFIED |
Domain not verified |
| 400003 | MFA_PHONE_NOT_FOUND |
Phone number not found |
| 400004 | MFA_PHONE_OR_TOKEN_REQUIRED |
Phone number or token is required |
| 400005 | MFA_NOT_ENABLED |
Multi-factor authentication is not enabled |
| 400006 | NO_EMAILS |
User has no email attached to it |
| 400007 | CURRENT_PASSWORD_REQUIRED |
Current password is required |
| 400008 | COMPROMISED_PASSWORD |
This password has been compromised in a data breach. |
| 400009 | CANNOT_DELETE_SOLE_MEMBER |
Cannot remove the only member |
| 400010 | CANNOT_DELETE_SOLE_OWNER |
Cannot remove the only owner |
| 400011 | ORDER_BY_ASC_DESC |
Invalid sorting order |
| 400012 | ORDER_BY_FORMAT |
Invalid ordering format |
| 400013 | WHERE_PIPE_FORMAT |
Invalid query format |
| 400014 | OPTIONAL_INT_PIPE_NUMBER |
$key should be a number |
| 400015 | CURSOR_PIPE_FORMAT |
Invalid cursor format |
| 400016 | EMAIL_DELETE_PRIMARY |
Cannot delete primary email |
| 400017 | CANNOT_UPDATE_ROLE_SOLE_OWNER |
Cannot change the role of the only owner |
| 400018 | INVALID_DOMAIN |
Invalid domain |
| 400019 | SELECT_INCLUDE_PIPE_FORMAT |
Invalid query format |
| 400022 | FILE_TOO_LARGE |
Uploaded file is too large |
| 400023 | PRISMA_API_ERROR |
Prismic API error |
| 400024 | INVALID_VERIFICATION_CODE |
Invalid verification code |
| 400025 | AUTH_CREDENTIALS_INVALID |
Authentication credentials were missing or incorrect |
| 400026 | PHONE_OR_EMAIL_IS_REQUIRED |
Phone or email is required |
| 400027 | USER_CANT_BE_GUARDIAN |
User can't be guardian |
| 400028 | GUARDIAN_LIMIT_REACHED |
Guardian limit reached |
| 400029 | ORGANIZATION_TYPE_TOURNAMENT |
Organization type should be tournament |
| 400030 | ORGANIZATION_NOT_VERIFIED |
Organization is not verified |
| 400031 | USER_NOT_VERIFIED |
User is not verified |
| 400032 | GAME_STATUS_INCOMPATIBLE |
Game status is incompatible |
| 400033 | DATABASE_CONNECTION_INVALID |
Database connection invalid |
| 400034 | INVALID_ACTIVATION_CODE |
Invalid activation code |
| 400035 | ACTIVATION_CODE_EXPIRED |
Activation code expired |
| 400036 | ACTIVATION_CODE_NOT_CONFIRMED |
Activation code not confirmed |
| 400037 | INVALID_PASSWORD_RESET_TOKEN |
Invalid or expired password reset token |
| 400038 | USER_ALREADY_HAS_A_BUSINESS |
User already has a business |
| 400039 | DOMAIN_RESERVED_BY_PLATFORM |
This domain is reserved as a platform domain and cannot be claimed by a business |
| 400040 | DOMAIN_CONFLICTS_WITH_TENANT |
This domain is already verified by a business and cannot be added as a platform domain |
401 Unauthorized
| Code | Constant Name | Message |
|---|---|---|
| 401000 | UNAUTHORIZED_RESOURCE |
Unauthorized resource |
| 401000 | FAILED_LOGIN |
Failed to log in due to a server error |
| 401001 | INVALID_CREDENTIALS |
Invalid credentials |
| 401002 | INVALID_MFA_CODE |
Invalid one-time code |
| 401003 | INVALID_TOKEN |
Invalid token |
| 401004 | UNVERIFIED_EMAIL |
Email is not verified |
| 401005 | UNVERIFIED_LOCATION |
Location is not verified |
| 401007 | MFA_BACKUP_CODE_USED |
Backup code is already used |
| 401008 | INVALID_FCM_TOKEN |
Invalid FCM token |
| 401009 | TOKEN_IS_EXPIRED |
Token is expired |
| 401010 | INVALID_ACCESS_TOKEN |
Invalid access token |
| 401011 | ACCESS_TOKEN_NOT_FOUND |
Access token not found in whitelist |
| 401012 | REFRESH_TOKEN_NOT_FOUND |
Refresh token not found in whitelist |
| 401013 | INVALID_REFRESH_TOKEN |
Invalid refresh token |
| 401014 | INSUFFICIENT_PERMISSIONS |
Insufficient permissions for this action |
| 401015 | BUSINESS_ACCESS_REQUIRED |
Business access required |
| 401020 | API_KEY_EXPIRED |
API key has expired |
| 401021 | API_KEY_REVOKED |
API key has been revoked |
| 401022 | INVALID_API_KEY |
Invalid API key |
403 Forbidden
| Code | Constant Name | Message |
|---|---|---|
| 403000 | FORBIDDEN_RESOURCE |
Forbidden resource |
404 Not Found
| Code | Constant Name | Message |
|---|---|---|
| 404000 | NOT_FOUND |
Not found |
| 404001 | USER_NOT_FOUND |
User not found |
| 404002 | GROUP_NOT_FOUND |
Group not found |
| 404003 | SESSION_NOT_FOUND |
Session not found |
| 404004 | EMAIL_NOT_FOUND |
Email not found |
| 404005 | API_KEY_NOT_FOUND |
API key not found |
| 404006 | APPROVED_SUBNET_NOT_FOUND |
Approved subnet not found |
| 404007 | AUDIT_LOG_NOT_FOUND |
Audit log not found |
| 404008 | DOMAIN_NOT_FOUND |
Domain not found |
| 404009 | MEMBERSHIP_NOT_FOUND |
Membership not found |
| 404010 | BILLING_NOT_FOUND |
Billing not found |
| 404011 | CUSTOMER_NOT_FOUND |
Customer not found |
| 404012 | INVOICE_NOT_FOUND |
Invoice not found |
| 404013 | SUBSCRIPTION_NOT_FOUND |
Subscription not found |
| 404014 | SOURCE_NOT_FOUND |
Source not found |
| 404015 | WEBHOOK_NOT_FOUND |
Webhook not found |
| 404016 | TEAM_NOT_FOUND |
Team not found |
| 404017 | ORGANIZATION_NOT_FOUND |
Organization not found |
| 404018 | ROLE_NOT_FOUND |
Role not found |
| 404019 | SEND_EMAIL_ERROR |
Send email error |
| 404020 | FILE_CONVERTER_NOT_FOUND |
File converter not found |
| 404021 | CHILD_NOT_FOUND |
Child account not found |
| 404022 | INVITE_NOT_FOUND |
Invite not found |
| 404023 | ATHLETE_NOT_FOUND |
Athlete not found |
| 404024 | ROSTER_NOT_FOUND |
Roster not found |
| 404025 | POSITION_NOT_FOUND |
Position not found |
| 404026 | TOURNAMENT_EVENT_NOT_FOUND |
Tournament event not found |
| 404027 | TEMPLATE_NOT_FOUND |
Template not found |
| 404028 | AVATAR_NOT_FOUND |
Avatar not found |
| 404029 | PHOTO_NOT_FOUND |
Photo not found |
| 404030 | REGION_NOT_FOUND |
Region not found |
| 404031 | PERMISSIONS_NOT_FOUND |
Permissions not found |
| 404032 | INVITE_IS_INVALID |
Invite is invalid |
| 404033 | EMPLOYEE_NOT_FOUND |
Employee not found |
409 Conflict
| Code | Constant Name | Message |
|---|---|---|
| 409000 | CONFLICT |
Conflict |
| 409001 | USER_CONFLICT |
User with this email or phone already exists |
| 409002 | PHONE_VERIFIED_CONFLICT |
This phone is already verified |
| 409003 | BILLING_ACCOUNT_CREATED_CONFLICT |
Billing account is already created |
| 409004 | MFA_ENABLED_CONFLICT |
Multi-factor authentication is already enabled |
| 409005 | MERGE_USER_CONFLICT |
Cannot merge the same user |
| 409006 | UPDATE_PROFILE_CONFLICT |
User email or phone is not verified |
| 409007 | EMAIL_VERIFIED_CONFLICT |
This email is already verified |
| 409009 | TRANSACTION_ERROR |
Transaction Error |
| 409010 | INVALID_USER |
Invalid User |
| 409011 | INVITATION_ALREADY_SENT |
Invitation already sent |
| 409012 | INVALID_INVITE_RECIPIENT |
Invalid invite recipient |
| 409013 | AGE_OUT_OF_RANGE |
Age out of range |
| 409014 | ACCOUNT_ALREADY_CHILD |
Account is already child |
| 409015 | EMAIL_EXIST |
User with this email already exist |
| 409016 | TEAM_TOURNAMENT_CONFLICT |
Team is already in tournament event |
| 409017 | ORGANIZATION_VERIFIED_CONFLICT |
Organization is already verified |
| 409018 | USER_VERIFIED_CONFLICT |
User is already verified |
| 409019 | USER_WITHOUT_PASSWORD |
User does not have a password |
| 409020 | USER_ALREADY_HAVE_PASSWORD |
User already has a password |
| 409021 | STAT_ALREADY_COLLECTED |
Can not collect statistics twice |
| 409022 | STAT_NOT_COLLECTED |
Can not discard statistics: it was not collected |
| 409023 | FOLLOW_REQUEST_ALREADY_EXISTS |
Follow request already exists |
| 409024 | CAN_NOT_FOLLOW |
Can not follow |
| 409025 | CAN_NOT_UNFOLLOW |
Can not unfollow |
| 409026 | USER_ALREADY_FOLLOWING |
User already following |
| 409026 | INVITE_NOT_AVAILABLE |
Invite not available |
422 Unprocessable Entity
| Code | Constant Name | Message |
|---|---|---|
| 422000 | VALIDATION_ERROR |
Validation error |
429 Too Many Requests
| Code | Constant Name | Message |
|---|---|---|
| 429000 | RATE_LIMIT_EXCEEDED |
Rate limit exceeded |
500 Internal Server Error
| Code | Constant Name | Message |
|---|---|---|
| 500000 | INTERNAL_SERVER_ERROR |
Internal server error |