All error codes
budget_exceeded
HTTP 422Not retryableRotation or purchase budget limit has been reached for this organization or number. Try again later.
How to resolve
- Your organization or this number has hit a rotation/purchase budget limit.
- Wait until the budget window resets or contact support to adjust limits.
Example response
JSON
{
"object": "error",
"code": "budget_exceeded",
"message": "Rotation or purchase budget limit has been reached for this organization or number. Try again later.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/budget_exceeded",
"retryable": false,
"recommended_action": "Wait for the budget window to reset or contact support."
}SDK handling
TypeScript
import { StatxtClient, StatxtApiError } from "@statxt/sdk"
const client = new StatxtClient({ apiKey: process.env.STATXT_API_KEY! })
try {
await client.messages.send({ ... })
} catch (err) {
if (err instanceof StatxtApiError && err.code === "budget_exceeded") {
// Rotation or purchase budget limit has been reached for this organization or number. Try again later.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/budget_exceeded