Run CC docs

Errors & Status Codes

Run CC uses industry-standard HTTP response codes to indicate whether an API request succeeded or failed.

Handling status 429 (quota exhausted)

Your token quota is monitored automatically by the gateway. Status 429 means your quota is exhausted. Check usage with GET /v1/usage, top up your package, or wait for the daily reset.

Code Error message Cause / resolution
200 OK Request processed successfully and tokens have been deducted from your balance.
400 Bad Request Invalid request. Required parameters such as model or messages may be missing, or the JSON format is invalid.
401 Unauthorized The API Key is incorrect, invalid, or missing from the Authorization header.
402 Payment Required Your key has expired (key_expired). Purchase or renew a package to reactivate it.
429 Too Many Requests Your total or daily token quota has been exhausted (insufficient_quota). Top up your package or wait for the daily quota reset.
500/502 Server / Gateway Error A gateway or upstream model connectivity error occurred. Run CC will attempt to failover the request automatically.