Skip to content
YasadDocs
Sign inGet started
Developer docs1 min read

Errors

Error format, codes and what to do about each.

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.

StatusCodeWhat to do
400INVALID_INPUTFix the request; the message names the problem
401UNAUTHORIZEDThe key is missing, unknown, expired or turned off. Check YASAD_API_KEY
403FORBIDDENThe key's role can't call this operation. Create a key with a role that can
404NOT_FOUNDThe record doesn't exist in this workspace
409CONFLICTStale revision, or a changed body under the same requestId. Re-read, then decide
409UNAVAILABLE / EXPIREDNot enough capacity, or a hold expired
429RATE_LIMITEDToo 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
Type to search