Skip to main content
HTTP 402 Payment Required
The request requires payment — billing is not set up or a balance is exhausted.
4xx · Client error✗ not retryable — fix the request instead
In AI APIs specifically
OpenAI returns 402-style billing errors when quota is exhausted; Anthropic surfaces billing problems as 400/403 with billing messages. Check the billing console first.
Fix checklist
- Add or update the payment method.
- Check usage limits and remaining credits.
- Set up billing alerts so this never surprises you again.
Spec: RFC reference
Related status codes
400 Bad Request
The server cannot process the request due to a client error — malformed JSON, invalid parameters, or schema violations..
401 UnauthorizedAuthentication is missing or invalid for this request..
403 ForbiddenThe server understood the request but refuses to authorize it — valid credentials, insufficient permission..
404 Not FoundThe requested resource does not exist at this URL..