All error codes

rate_limited

HTTP 429Retryable

Per-IP or per-key rate limit exceeded. Honor the `Retry-After` header before retrying.

How to resolve

  • Honor the `Retry-After` header value (seconds) before retrying.
  • Implement exponential backoff with jitter for high-volume integrations.
  • Contact support to increase your plan's rate limit.

Example response

JSON

{
  "object": "error",
  "code": "rate_limited",
  "message": "Per-IP or per-key rate limit exceeded. Honor the `Retry-After` header before retrying.",
  "request_id": "req_example123",
  "docs_url": "https://docs.statxt.com/api/errors/rate_limited"
}

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 === "rate_limited") {
    // Per-IP or per-key rate limit exceeded. Honor the `Retry-After` header before retrying.
    console.error(err.requestId) // include in support tickets
  }
}

Public reference: /docs/errors/rate_limited