Skip to content
Docs

Errors

Credits exhausted

credits_exhausted is HTTP 402 and not retryable. Restore the allowance or reduce usage.

Overview

Metered Cloud calls consume organization credits. When the remaining allowance cannot cover the next charge, the API returns HTTP 402 with credits_exhausted and retryable: false.

json
{
  "error": {
    "code": "credits_exhausted",
    "message": "Credit allowance exhausted for this billing period",
    "retryable": false
  }
}

HTTP status note

Earlier versions of the API returned 409 for this error. It now returns 402. Branch on code rather than on the HTTP status so your integration handles both.

How to recover

Retrying will not help until credits are restored. Full metering: What a credit is.