LifeAstroAPILifeAstroAPI

← Troubleshooting

How to fix quota_exhausted (HTTP 402)

The plan's monthly credits are used and the wallet has no credits to cover this call.

What the API returns

{
  "error": {
    "code": "quota_exhausted",
    "message": "credit quota exhausted — top up your wallet or upgrade your plan to continue",
    "request_id": "770372810e5f2a70"
  }
}

Why it happens

  • Usage grew past the plan size and the wallet is empty.

How to fix it

  1. Top up the wallet in Dashboard → Billing for the rest of the period, or move to a larger plan.

Should your code retry?

Not automatically. Retrying will return the same error until credits are available; surface it to whoever manages the account.

See all codes on the troubleshooting index and the error envelope on Errors. Still stuck? Email [email protected] with the request_id.