Errors

codemeaningdo
400Malformed request — includes a provider rejecting a pasted credential (their verdict is quoted)fix and retry
401Missing/invalid API keyre-authenticate
402Plan quota exhausted (hard stop — we never bill silent overage; opt in explicitly to continue)upgrade / opt in / wait for the period
403Your key can't do this (scope, or a frontier call with no usable provider credential — the error names the provider and the fix)don't retry unchanged
404No such resource—
413A knowledge quota (named: document_too_large, set_quota_exceeded, knowledge_quota_exceeded)trim or upgrade
422Schema validationfix the request
429Rate limitedback off
503A dependency unreachable (e.g. the provider during credential validation — nothing was stored)retry with backoff

Two guarantees worth designing around: no mid-stream failover (once the first token streams, a failure is surfaced, never silently retried on another backend), and your credentials only ever pay for your own calls — a request that can't be served on your keys fails; it is never served on ours.