ConstReadonlyAUTH: {Authentication Errors (3000-3099) Authentication-related failures
ReadonlyACCOUNT_ALREADY_EXISTS: 3010Account with email already exists
ReadonlyACCOUNT_LOCKED: 3002Account locked or disabled
ReadonlyCANNOT_UNLINK_LAST_ACCOUNT: 3015Last account cannot be unlinked
ReadonlyCONTEXT_NOT_INITIALIZED: 3004Context not initialized
ReadonlyEMAIL_NOT_VERIFIED: 3007Email verification required before login
ReadonlyFAILED_TO_CREATE_SESSION: 3012Session creation failed
ReadonlyFAILED_TO_CREATE_USER: 3011User creation failed
ReadonlyFAILED_TO_UPDATE_USER: 3013User update failed
ReadonlyINVALID_CREDENTIALS: 3000Invalid credentials provided
ReadonlyINVALID_TOKEN: 3003Invalid or expired token
ReadonlyPASSWORD_TOO_LONG: 3009Password exceeds maximum length
ReadonlyPASSWORD_TOO_SHORT: 3008Password doesn't meet minimum length
ReadonlySESSION_EXPIRED: 3001Session expired or invalid
ReadonlySOCIAL_ACCOUNT_LINKED: 3014Social account already linked
ReadonlyUSER_NOT_AUTHENTICATED: 3005User not authenticated
ReadonlyAUTHZ: { ACCESS_DENIED: 3101; FORBIDDEN: 3100; INSUFFICIENT_PERMISSIONS: 3102 }Authorization Errors (3100-3199) Permission and access control failures
ReadonlyACCESS_DENIED: 3101Resource access denied
ReadonlyFORBIDDEN: 3100Insufficient permissions
ReadonlyINSUFFICIENT_PERMISSIONS: 3102User lacks required role
ReadonlyDATABASE: {Database Errors (2000-2999) Generic database errors thrown by Prisma client extensions
ReadonlyCONNECTION_FAILED: 2004Database connection failed
ReadonlyFOREIGN_KEY_CONSTRAINT: 2003Foreign key constraint violation
ReadonlyGENERIC: 2000Generic database error
ReadonlyNULL_CONSTRAINT: 2006Null constraint violation
ReadonlyRECORD_NOT_FOUND: 2001Record not found in database
ReadonlyTIMEOUT: 2005Database timeout
ReadonlyTOO_MANY_CONNECTIONS: 2007Too many database connections
ReadonlyTRANSACTION_CONFLICT: 2008Transaction conflict or deadlock
ReadonlyUNIQUE_CONSTRAINT: 2002Unique constraint violation
ReadonlyI18N: { LOCALE_NOT_SUPPORTED: 9301; TRANSLATION_MISSING: 9300 }I18n Errors (9300-9399) Internationalization and localization errors
ReadonlyLOCALE_NOT_SUPPORTED: 9301Requested locale not supported
ReadonlyTRANSLATION_MISSING: 9300Translation key missing from all locales
ReadonlyRESOURCE: { ALREADY_EXISTS: 4101; CONFLICT: 4100; NOT_FOUND: 4000; ROUTE_NOT_FOUND: 4004 }Resource Errors (4000-4999) Generic resource-related errors
ReadonlyALREADY_EXISTS: 4101Resource already exists
ReadonlyCONFLICT: 4100Resource conflict or duplicate
ReadonlyNOT_FOUND: 4000Generic resource not found
ReadonlyROUTE_NOT_FOUND: 4004Route/endpoint not found
ReadonlyROUTER: {Router Errors (9000-9099) Router and controller-related INTERNAL errors
ReadonlyCONTROLLER_METHOD_NOT_FOUND: 9006Controller method not found
ReadonlyCONTROLLER_REGISTRATION_ERROR: 9005Controller registration error
ReadonlyOPENAPI_ROUTE_REGISTRATION: 9008OpenAPI route registration failed
ReadonlySYSTEM: {System Errors (9000-9999) Internal system errors and unexpected failures
ReadonlyCONFIG_NOT_INITIALIZED: 9101ConfigService not initialized
ReadonlyCONFIGURATION_ERROR: 9100Generic configuration error
ReadonlyCRON_EXECUTION_FAILED: 9204Cron job execution failed
ReadonlyEXECUTION_CONTEXT_NOT_INITIALIZED: 9201Execution context not initialized
ReadonlyINFRASTRUCTURE_ERROR: 9200Generic infrastructure error
ReadonlyINTERNAL_ERROR: 9000Internal server error
ReadonlyINVALID_ERROR_CODE_RANGE: 9105Invalid error code range
ReadonlyINVALID_MODULE_PROVIDER: 9106Invalid module provider configuration
ReadonlyMODULE_ALREADY_REGISTERED: 9102Module already registered
ReadonlyMODULE_CIRCULAR_DEPENDENCY: 9103Circular module dependency detected
ReadonlyMODULE_DEPENDENCY_NOT_FOUND: 9104Module dependency not found
ReadonlyQUEUE_BINDING_NOT_FOUND: 9203Queue binding not found
ReadonlyQUEUE_PROVIDER_NOT_SUPPORTED: 9205Queue provider not supported
ReadonlyREQUEST_CONTAINER_NOT_INITIALIZED: 9202Request container not initialized
ReadonlyVALIDATION: {Validation Errors (1000-1999) Input validation failures
ReadonlyGENERIC: 1000Generic validation error
ReadonlyINVALID_FORMAT: 1002Invalid format
ReadonlyREQUEST_VALIDATION: 1004Request validation failed (OpenAPI, etc.)
ReadonlyREQUIRED_FIELD: 1001Required field missing
ReadonlySCHEMA_VALIDATION: 1003Schema validation failed
Centralized Error Code Registry
Error codes are organized by category with specific ranges: