All error codes
url_not_allowed
HTTP 400Not retryableA URL in the request isn't allowed: it must use https on port 443 or 8443, use a host name, and resolve to a public address.
Example response
JSON
{
"object": "error",
"code": "url_not_allowed",
"message": "A URL in the request isn't allowed: it must use https on port 443 or 8443, use a host name, and resolve to a public address.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/url_not_allowed",
"retryable": false,
"recommended_action": "Use a public https URL."
}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 === "url_not_allowed") {
// A URL in the request isn't allowed: it must use https on port 443 or 8443, use a host name, and resolve to a public address.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/url_not_allowed