foxora

Errors and status codes

Handle Foxora API failures by HTTP status, structured error code, and x-request-id, while keeping credentials and prompt content out of logs.

StatusMeaningClient action
400Invalid requestFix the payload; do not retry unchanged.
401Authentication failedRefresh or replace the account token.
403Feature or plan deniedVerify entitlement and requested model.
404Route or resource missingCheck the /v1 path and identifier.
429Request ceiling reachedWait for reset guidance and reduce concurrency.
5xxService failureRetry safe work with bounded backoff and jitter.

Unknown routes return NOT_FOUND; validation failures return VALIDATION_ERROR; unexpected failures return INTERNAL_ERROR. Upstream-specific messages may vary, so do not build control flow from prose.

Expected result: the client either corrects a permanent request error or performs a bounded retry while retaining the request identifier for support.