All error codes
operation_in_progress
HTTP 409RetryableAn operation for this number is already in progress. Poll the operation until it reaches a terminal state before retrying.
How to resolve
- An async operation for this number is already running.
- Poll the existing operation via GET /premium-number-operations/{id} until it reaches a terminal state.
Example response
JSON
{
"object": "error",
"code": "operation_in_progress",
"message": "An operation for this number is already in progress. Poll the operation until it reaches a terminal state before retrying.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/operation_in_progress",
"retryable": true,
"recommended_action": "Poll the existing operation until it completes, then continue.",
"retry_after_seconds": 10
}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 === "operation_in_progress") {
// An operation for this number is already in progress. Poll the operation until it reaches a terminal state before retrying.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/operation_in_progress