All error codes
feature_not_enabled
HTTP 403Not retryableA required product feature flag is disabled for this organization (for example media/MMS uploads). Enable the feature or contact support.
Example response
JSON
{
"object": "error",
"code": "feature_not_enabled",
"message": "A required product feature flag is disabled for this organization (for example media/MMS uploads). Enable the feature or contact support.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/feature_not_enabled",
"retryable": false,
"recommended_action": "Enable the required feature flag, then retry."
}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 === "feature_not_enabled") {
// A required product feature flag is disabled for this organization (for example media/MMS uploads). Enable the feature or contact support.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/feature_not_enabled