Errors
Errors share one shape: {"error": {"type", "code", "message", "param"}}. A decided request is never an error, whatever its verdict.
| Status | Codes | Meaning |
|---|---|---|
| 400 | invalid_json | The body is not a JSON object. |
| 401 | missing_api_key, invalid_api_key | No key, or a revoked or expired one. |
| 413 | body_too_large | The body exceeds the limit. |
| 415 | unsupported_media_type | Send Content-Type: application/json. |
| 422 | schema_violation, unknown_decision | The request does not match its decision's schema; param names the field. |
| 429 | rate_limited, daily_decision_quota, daily_question_quota | Wait for Retry-After. |
| 503 | service_unavailable, overloaded | Retry shortly. |