In plain terms: when a call fails, the server says why. This page explains how to read the error message and what each status code means, with what to do about it.
Error body
Errors use the response envelope with error fields instead ofdata.
Branch on
status, not on the text of message. Messages are written for people and can change.
Three kinds of refusal are answered by the access checks before a request reaches the API and carry no body: 401, 403 from the key or host checks, and 400 for an ambiguous path. Handle them by status code alone.
Field errors
A400 caused by invalid input lists each problem in errors. Each entry names the field and says what is wrong.
Unknown field: '<name>'.
Status codes
Other client errors raised while handling the request, such as an unsupported media type, use the same envelope and the standard status code.
Which calls return which errors
Retry guidance
Next steps
REST API overview
Base path, authentication, response envelope, paging, idempotency and stream conventions shared by every endpoint.
Failure handling
Per-node retry, error routing, failure budgets and join rules, set with the engine object in a node’s configuration.
Troubleshooting
Common symptoms of a running Yukta server, their causes and the fix.