Unknown paths, validation failures, unauthenticated calls, and rate limits under /api return application/json. Keep reading the NestJS string error(for example "Not Found"). Extra fields are additive. This is not RFC 9457 problem+json.
400 validation
{
"statusCode": 400,
"message": ["Enter a valid 10-digit mobile number", "OTP must be 6 digits"],
"error": "Bad Request",
"code": "VALIDATION_ERROR",
"hint": "Check required fields and types against the OpenAPI document.",
"status": 400,
"errorDetail": {
"code": "VALIDATION_ERROR",
"message": "Enter a valid 10-digit mobile number; OTP must be 6 digits",
"status": 400,
"hint": "Check required fields and types against the OpenAPI document."
}
}401 unauthenticated
{
"statusCode": 401,
"message": "Unauthorized",
"error": "Unauthorized",
"code": "UNAUTHENTICATED",
"hint": "Send Authorization: Bearer <access_token> from a seller login (OTP/PIN).",
"status": 401,
"errorDetail": {
"code": "UNAUTHENTICATED",
"message": "Unauthorized",
"status": 401,
"hint": "Send Authorization: Bearer <access_token> from a seller login (OTP/PIN)."
}
}404 not found
{
"statusCode": 404,
"message": "Cannot GET /api/this-does-not-exist",
"error": "Not Found",
"code": "NOT_FOUND",
"hint": "No route or resource exists at this path.",
"status": 404,
"errorDetail": {
"code": "NOT_FOUND",
"message": "Cannot GET /api/this-does-not-exist",
"status": 404,
"hint": "No route or resource exists at this path."
}
}429 rate limit
{
"statusCode": 429,
"message": "Too many requests, please try again later",
"error": "Too Many Requests",
"code": "RATE_LIMITED",
"hint": "Wait and retry. Honor Retry-After when present.",
"status": 429,
"retryAfter": 30,
"errorDetail": {
"code": "RATE_LIMITED",
"message": "Too many requests, please try again later",
"status": 429,
"hint": "Wait and retry. Honor Retry-After when present."
}
}