All error codes
fnd_blocked
HTTP 422Not retryableRecipient is in the Failed Number Directory: it is a landline, invalid, deactivated, or unroutable number, or its last send failed for one of those reasons. The send was not enqueued and was not charged.
Example response
JSON
{
"object": "error",
"code": "fnd_blocked",
"message": "Recipient is in the Failed Number Directory: it is a landline, invalid, deactivated, or unroutable number, or its last send failed for one of those reasons. The send was not enqueued and was not charged.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/fnd_blocked",
"retryable": false,
"recommended_action": "Remove the number from your list. Do not retry it."
}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 === "fnd_blocked") {
// Recipient is in the Failed Number Directory: it is a landline, invalid, deactivated, or unroutable number, or its last send failed for one of those reasons. The send was not enqueued and was not charged.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/fnd_blocked