Error Codes

Complete reference of auth-svc error codes with HTTP status mappings and resolution guidance.

Error Response Format

Standard error envelopejson
{
  "data": null,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid credentials",
    "details": { "field": "email" }
  },
  "meta": {
    "timestamp": "2026-02-24T12:00:00.000Z",
    "request_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}
CodeHTTPNameDescriptionResolution
UNAUTHORIZED401Invalid CredentialsEmail/password combination is incorrectVerify email and password are correct
ACCOUNT_SUSPENDED403Account SuspendedAccount has been suspended by an adminContact platform administrator
ACCOUNT_LOCKED423Account LockedToo many failed login attemptsWait for lockout period (15 min) or contact admin
ACCOUNT_NOT_VERIFIED403Email Not VerifiedEmail address has not been verifiedCheck email for verification link or request new one
MFA_REQUIRED200MFA RequiredAccount requires multi-factor authenticationComplete MFA challenge using /mfa/totp/verify
CodeHTTPNameDescriptionResolution
TOKEN_EXPIRED401Token ExpiredJWT access token has expiredRefresh using /refresh endpoint with refresh token
TOKEN_INVALID401Invalid TokenJWT signature is invalid or malformedRe-authenticate to get new tokens
TOKEN_REVOKED401Token RevokedToken has been blacklisted (logout/compromised)Re-authenticate to get new tokens
REFRESH_TOKEN_EXPIRED401Refresh Token ExpiredRefresh token has expired (7d default)Full re-authentication required
CodeHTTPNameDescriptionResolution
SESSION_NOT_FOUND404Session Not FoundThe specified session ID does not existVerify session ID or re-authenticate
SESSION_EXPIRED401Session ExpiredSession has timed outRe-authenticate to create a new session
MAX_SESSIONS_REACHED429Max SessionsMaximum concurrent sessions reachedRevoke an existing session first
CodeHTTPNameDescriptionResolution
MFA_INVALID_CODE400Invalid MFA CodeThe TOTP/OTP code is incorrectEnter the correct code from authenticator app
MFA_NOT_ENABLED400MFA Not EnabledMFA has not been set up for this accountEnroll in MFA first via /mfa/totp/setup
MFA_ALREADY_ENABLED409MFA Already EnabledMFA is already enabled for this accountDisable MFA first if re-enrollment is needed
CodeHTTPNameDescriptionResolution
BAD_REQUEST400Bad RequestRequest body failed validationCheck request body matches the DTO schema
NOT_FOUND404Not FoundThe requested resource does not existVerify the ID/path is correct
CONFLICT409ConflictResource already exists (duplicate email, etc.)Use a different identifier or update the existing resource
RATE_LIMITED429Rate LimitedToo many requests in the time windowWait and retry after the rate limit window resets
FORBIDDEN403ForbiddenInsufficient permissions for this operationVerify user has the required role (user/organizer/admin)

Full Reference

For the complete 21-category error code reference with 100+ error codes, download the error-codes.md file from the Downloads page.