Error Response Formats
Errors have two shapes depending on the source: Auth/middleware errors (401, 403, 429):success: false:
Error Codes
Authentication (401)
Authorization (403)
Rate Limiting (429)
Handler Errors (400)
When a handler returnssuccess: false, the API responds with the error message and metadata. These are domain-specific errors like invalid parameters or missing data.
Circuit Breaker (503)
When an upstream dependency is unavailable:retryAfterMs window.