All error codes

internal_error

HTTP 500Not retryable

Unexpected server error. Do not tight-loop retry; use exponential backoff if you retry at all, and contact support with the `request_id` if it persists.

How to resolve

  • This is an unexpected server-side error — not a problem with your request.
  • Use exponential backoff before retrying.
  • Contact support with the `request_id` from the response if it persists.

Example response

JSON

{
  "object": "error",
  "code": "internal_error",
  "message": "Unexpected server error. Do not tight-loop retry; use exponential backoff if you retry at all, and contact support with the `request_id` if it persists.",
  "request_id": "req_example123",
  "docs_url": "https://docs.statxt.com/api/errors/internal_error"
}

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 === "internal_error") {
    // Unexpected server error. Do not tight-loop retry; use exponential backoff if you retry at all, and contact support with the `request_id` if it persists.
    console.error(err.requestId) // include in support tickets
  }
}

Public reference: /docs/errors/internal_error