code, and a human-readable error:
Each
details entry has a location (path, query, header, or body), a path to the
input, a code (required, invalid_type, invalid_value, or unknown_field), and a message.
For an unknown field, path may only point to the containing object ([]).
New codes can be added. If you don’t recognize a code, handle the response by its HTTP status.
Error codes
Retry safely
- Reads are safe to retry. Retry
429and503afterRetry-After, with a limit on attempts. - Writes: a timeout or
500does not prove that nothing was saved. Follow the operation’s documented retry behavior; don’t assume it supports idempotency keys. - Don’t retry
400,401,403, or404unchanged; the same request fails the same way.
invalid_cursor, see Pagination.
Reconcile an uncertain write
Before repeating a create request, inspect the relevant list to check whether it succeeded. Similar entries can be ambiguous; stop automatic retries if you cannot identify the result. For updates, read current values before repeating the request so you don’t overwrite another editor’s changes. Where an operation documents an idempotency key or retry token, reuse it as directed. See the operation’s guide for specific recovery steps, including filing creation, schedule items, comments, and upload completion.Handle an unexpected response
If a documented parameter is rejected as unknown, or a known resource returns an unexpected non-JSON404, check the host and path. Note the status, content type, requestId, time, and request shape,
then retry once. Don’t loop or guess at undocumented endpoints.
Never log API keys, Authorization headers, or signed download URLs. Record resource IDs and
versions instead.
Get help
Email [email protected] with therequestId, the
time of the request, the method and path, and the status and code you received. Never send your
API key, the Authorization header, or a signed download URL.