Skip to main content
Every error is one JSON shape. Build alerting on it.
{
  "error_code": "MISSING_SCOPE",
  "message": "required scope 'items:write' not present in token"
}

The codes

Statuserror_codeCause
401MISSING_TOKENAuthorization header missing or not Bearer
401INVALID_TOKENMalformed JWT or invalid signature
401EXPIRED_TOKENexp is in the past
401TOKEN_NOT_YET_VALIDnbf is in the future
401WRONG_AUDIENCEaud doesn’t match this platform’s platform_id
401WRONG_ISSUERiss isn’t an accepted MudraID issuer (default mudraid-identity; configurable)
403MISSING_SCOPEToken valid but required scope absent
404ROUTE_NOT_FOUNDNo YAML rule, or skip: true. Indistinguishable on purpose
500JWKS_UNAVAILABLECouldn’t fetch JWKS to verify. Operator-side, not credential-side
500MIDDLEWARE_NOT_READYYAML couldn’t be loaded or parsed
Behind this contract: a full unit suite covering every failure shape, the JWKS rotation recovery path, thread safety, and the anti-leak guarantee that no token or secret appears in middleware logs. For how to act on each code, see Interpret verification error codes.