m2pfintech
Error Codes

Authentication Errors

Error codes for login, JWT token, permission, and rate limit issues.

Errors related to login, JWT token validation, permissions, and rate limiting.


CodeHTTPMessageScenarioResolution
AUTH_001401Invalid credentialsWrong username or passwordVerify API credentials from your onboarding package
AUTH_002401Token expiredJWT token has exceeded its 24-hour TTLCall /auth/login to obtain a fresh token
AUTH_003401Invalid tokenJWT is malformed, tampered, or not properly signedObtain a new token via /auth/login
AUTH_004403Insufficient permissionsThe API endpoint is not allowed for your roleContact M2P to verify API access permissions
AUTH_005401Session expiredServer-side session has been invalidatedRe-authenticate via /auth/login
AUTH_006400Missing authorization headerNo Authorization header in the requestInclude Authorization: Bearer <token> header
AUTH_007403Tenant mismatchTENANT header does not match the JWT token's entityVerify the TENANT header matches your assigned tenant ID
AUTH_008429Rate limit exceededToo many requests in the current windowImplement exponential backoff and retry after the rate limit resets