All error codes
quiet_hours_blocked
HTTP 422Not retryableSend blocked by quiet-hours policy for the recipient timezone.
How to resolve
- Schedule for next_send_at from check_message_compliance, or adjust quiet-hours settings.
Example response
JSON
{
"object": "error",
"code": "quiet_hours_blocked",
"message": "Send blocked by quiet-hours policy for the recipient timezone.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/quiet_hours_blocked",
"retryable": false,
"recommended_action": "Schedule for next_send_at from compliance check, or adjust quiet-hours settings."
}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 === "quiet_hours_blocked") {
// Send blocked by quiet-hours policy for the recipient timezone.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/quiet_hours_blocked