Foxcite uses standard HTTP status codes and JSON error payloads so both applications and AI agents can recover cleanly.
| Status | Meaning & Recovery |
|---|---|
| 200 / 201 | Success. The request completed and returned the requested resource or scan payload. |
| 400 | Bad Request. Missing required parameter, invalid plan/engine name, or malformed payload. |
| 401 | Unauthorized. Missing, revoked, or invalid API key or OAuth token. |
| 402 | Payment Required. Credit balance is too low for the requested scan or playbook. Top up credits in Billing or pay per request via x402. |
| 403 | Forbidden. Plan limit reached (for example, brand cap reached or daily checks requested on the Free plan). |
| 404 | Not Found. The requested brand, scan report, or playbook does not exist or belongs to another account. |
| 422 | Unprocessable Entity. FastAPI schema validation failed—check the `detail` array for exact field errors. |
| 429 | Too Many Requests. Rate limit exceeded; back off exponentially and retry. |
| 500 / 502 | Server or Upstream Error. A transient error on Foxcite or an upstream AI provider; safe to retry with backoff. |
{
"detail": "Insufficient credits: this scan needs 8 credits, you have 4."
}If an individual engine fails mid-scan, Foxcite automatically refunds the credits for that engine so you are never charged for failed provider calls.