Error codes
Errors answer HTTP 4xx/5xx with this body:
json
{
"error": {
"code": "RATE_LIMITED",
"message": "too many requests",
"retryable": true
}
}| HTTP | code | Retry | Meaning |
|---|---|---|---|
| 401 | INVALID_SIGNATURE | — | wrong signature or stale timestamp |
| 403 | IP_NOT_ALLOWED | — | IP not in the client's allowlist |
| 404 | MESSAGE_NOT_FOUND | — | no such message (GET) |
| 422 | VALIDATION_FAILED | — | a field is missing or malformed |
| 422 | INVALID_NUMBER | — | invalid destination number |
| 422 | ROUTE_NOT_FOUND | — | no such route, or the client may not use it |
| 422 | SENDER_NOT_APPROVED | — | sender name not approved |
| 422 | SENDER_SUSPENDED | — | sender name suspended |
| 429 | RATE_LIMITED | ✓ | over the client's TPS for longer than the gateway waits (10 s by default): sends above your TPS wait for their turn first, so this means you send faster than your TPS for a sustained time. Retry with the same clientRef after the Retry-After header (seconds); keep your HTTP timeout above that wait |
| 503 | PROVIDER_UNAVAILABLE | ✓ | provider temporarily unavailable |
| 502 | SUBMIT_FAILED | — | provider rejected the message, see details.providerCode, or the provider timed out (details.code: TIMEOUT) |
Always retry with the same clientRef; the Gateway prevents double sends.