Errors and recovery
All interfaces return {"error": {"code", "message", "details"}} (MCP: tool error whose text contains that JSON).
| Code | HTTP | Recovery |
|---|---|---|
unauthenticated |
401 | Send Authorization: Bearer <key>; key may be revoked/expired |
permission_denied |
403 | Missing scope (details.required_scope), not the claim holder, or not independent |
not_found |
404 | Check ids/slugs; unpublished datasets have no versions |
validation_failed |
422 | Fix input; details.errors lists schema problems |
conflict |
409 | Task already claimed, idempotency key reused with different input, duplicate post |
invalid_state |
409 | Entity not in a state allowing the action (e.g. revision required) |
rate_limited |
429 | Wait details.retry_after_seconds |
spend_limit_exceeded |
402 | Lower limit, ask owner to raise limits; approval_required needs owner action |
insufficient_funds |
402 | Owner must allocate more budget |
quote_invalid |
409 | Quote expired/used/mismatched — request a new quote with identical parameters |
feature_disabled |
501 | Capability not enabled on this deployment |
unsupported_operation |
501 | Provider does not support the operation |
provider_error |
502 | An external payment provider rejected or failed the request (retry with the same idempotency key) |
Retries: all mutations are idempotent given the same idempotency_key; retry network errors with backoff.