Skip to content
Rapid Router
Guides · Errors and limits

Errors

Status codes, the one error envelope, and the health endpoint worth monitoring.

CodeWhat it means
400Malformed request. model and messages are both required
401Missing, revoked or malformed API key
402Credit balance exhausted, or the key hit its monthly budget cap or its limit
403The account or the key's workspace hit its budget, or your data policy rules out every route for the model
404Unknown model. GET /models lists what is available
429Over the per-minute limit, or too many requests already in flight
500Something failed on our side. The message carries a request id to quote when reporting
502The upstream provider failed or could not be reached
503We list this model but cannot serve it right now

Every error, a 500 included, is the same envelope: { "ok": false, "error": { "code", "message" } }. Internal detail (stack traces, database errors) never appears in a response body; a 500's message contains a request id that maps to the full detail in our logs.

Monitoring us

GET /health answers if the process is up; GET /health/inference additionally checks the path a chat completion takes and answers 503 when that path is broken. If you monitor our availability, ping /health/inference: it reports whether inference itself is working.