Errors are JSON: {"error": "CODE", "message": "Plain explanation", "details": {...}}. details says what happened and what to do: outcome (rejected or unconfirmed), recovery, retryable, and when relevant retryAfterSeconds and field. Every response has an x-request-id header; include it when you report a problem.
| Status | Code | What to do |
|---|---|---|
| 400 | INVALID_INPUT | Fix the request; the message names the problem |
| 401 | UNAUTHORIZED | The key is missing, unknown, expired or turned off. Check YASAD_API_KEY |
| 403 | FORBIDDEN | The key's role can't call this operation. Create a key with a role that can |
| 404 | NOT_FOUND | The record doesn't exist in this workspace |
| 409 | CONFLICT | Stale revision, or a changed body under the same requestId. Re-read, then decide |
| 409 | UNAVAILABLE / EXPIRED | Not enough capacity, or a hold expired |
| 429 | RATE_LIMITED | Too many requests at once for this workspace (wait 1 second) or its per-minute budget is used up (wait 60). Wait for retry-after / details.retryAfterSeconds, then retry with the same requestId |