400 | Malformed request or API key passed in URL query string. | Fix the request format and pass API keys in headers only. |
401 | Missing, invalid, or revoked API key. | Check Authorization: Bearer ask_... or X-API-Key. |
402 | Billing is not active or payment is past due. | Link or update a card in the Developer Portal. |
403 | Project is suspended. | Check project status in the Developer Portal. |
404 | Resource not found in this project. | Verify the ID belongs to the authenticated project. |
409 | State conflict (for example, cancelling a finished request or answering when not in needs_input). | Fetch the latest request state before retrying. |
422 | Invalid request fields (such as phone format, targets, or clarification answers). | Fix the fields noted in the response and retry. |
429 | Rate limit exceeded. | Back off and retry. |
5xx | Temporary server error. | Retry safely with the same Idempotency-Key. |