Errors
There are three kinds of error. Request errors are the HTTP answer to a REST call. Message errors say why one message failed. SMPP errors are the status of an SMPP command.
Request errors
A failed REST call returns the HTTP status and a body with error and message.
| HTTP status | error | Meaning | Fix |
|---|---|---|---|
400 | invalid_request | The body is not JSON or a field is wrong; message says which. | Read message, correct that field and send again. |
401 | unauthorized | No Bearer key, or a key we do not know. | Send the header Authorization: Bearer <key> with a key from Developers → Credentials. |
401 | key_disabled | The key is switched off. | Switch the key on in Developers → Credentials, or use another key. |
401 | key_expired | The key is past its last day (WIB). | Make a new key, or ask your admin to move the key's expiry date. |
402 | insufficient_balance | The balance is too low to send the code. OTP calls only. | Top up the balance, then ask for a new code. |
403 | ip_not_allowed | The request is not from one of the key's allowed IPs. | Ask your admin to add this IP to the key's Allowed IPs, or remove the limit. |
403 | not_active | The account is not active yet. | Sign in to the portal and set your password, and finish what the welcome email asks (verify your WhatsApp number, or top up), then try again. |
403 | suspended | The account is suspended. | Contact Telrioz support. |
403 | sender_not_allowed | The Sender ID is not approved for that number's operator. OTP calls only. | Use an approved Sender ID, or leave from out to use the Gateway's Sender ID. |
404 | not_found | No such id on this account, or no such path under /api/v1. Status and verify calls only. | Check the path, and that the id is the one the send call returned and the key belongs to the same account. |
409 | otp_limit | Already 5 OTPs to this number today. Applies while the account's Throttle is on; it can be switched off. OTP calls only. | Wait until tomorrow (WIB), or let the user use the code already sent. |
412 | no_route | There is no Route, or no price, for that number's operator yet. OTP calls only. | Contact Telrioz support to add the Route. |
422 | no_gateway | The Gateway was paused while the request was in flight, so the code could not go out. A Gateway that is paused or deleted before the request answers 400 invalid_request instead. OTP calls only. | Switch the Gateway on in Messaging → Gateways, or name another active OTP Gateway in gateway, then ask for a new code. |
429 | rate_limited | More than 10 requests a second on this account. | Wait a second and send again; space calls out, or send many numbers in one call. |
429 | throttled | More messages a second than the account's speed limit. OTP calls only. | Wait a moment and try again. |
500 | internal | Something failed on our side. | Try again; if it keeps happening, contact Telrioz support. |
503 | unavailable | Telrioz could not take the message right now. OTP calls only. | Try again in a few seconds. |
Message errors
A message that ends in an Error state carries one of these codes in its error field.
| Code | Meaning | Retry helps |
|---|---|---|
TELRIOZ_NOT_SENT | Upstream did not take the message in time | Yes |
ESME_RTHROTTLED | Upstream was over its speed limit | Yes |
ESME_RMSGQFUL | Upstream's queue was full | Yes |
ESME_RSYSERR | Upstream's system failed | Yes |
ESME_RSUBMITFAIL | Upstream could not take the message | Yes |
ESME_RX_T_APPN | A temporary error upstream | Yes |
ESME_RINVDSTADR | Not a valid phone number | No |
ESME_RINVDSTTON | Not a valid phone number (its type) | No |
ESME_RINVDSTNPI | Not a valid phone number (its plan) | No |
ESME_RINVSRCADR | The Sender ID was refused | No |
ESME_RINVSRCTON | The Sender ID was refused (its type) | No |
ESME_RINVSRCNPI | The Sender ID was refused (its plan) | No |
ESME_RINVMSGLEN | The text is too long | No |
ESME_RINVESMCLASS | The message type was refused | No |
ESME_RINVDCS | The encoding was refused | No |
ESME_RX_P_APPN | Upstream refused the message for good | No |
ESME_RX_R_APPN | Upstream refused the message | No |
NE:0100 | Not a valid phone number | No |
NE:0101 | The phone number does not exist | No |
NE:0102 | The number is roaming or out of reach | No |
NE:0103 | The handset had a problem (signal or SMS function) | Yes |
NE:0104 | The number has unsubscribed from SMS | No |
NE:0105 | The handset is off or its service is suspended | Yes |
NE:0106 | The number is being transferred to another operator | No |
CR:0200 | The content was blocked | No |
CR:0201 | The number is blacklisted | No |
CR:0202 | Too many messages to this number too fast | Yes |
CR:0203 | Sent outside the allowed service hours | Yes |
CR:0205 | The message was blocked at audit | No |
CR:0206 | The sending limit was exceeded | Yes |
CR:0208 | Blocked because of too much traffic | Yes |
CR:0211 | The Sender ID was refused | No |
CR:0212 | The signature was blocked | No |
CR:0213 | The same content was sent again | No |
CR:0214 | The number is high risk | No |
CR:0215 | The signature was not reported to the operator | No |
CE:0300 | The request's format was wrong | No |
CE:0301 | The text is too long or empty | No |
CE:0302 | A part of the long message is missing | No |
CE:0305 | The operator is not supported | No |
CE:0307 | The message ID is wrong | No |
SY:0500 | Upstream's system failed | Yes |
SY:0501 | Upstream's gateway failed | Yes |
UN:0900 | An unknown error upstream | Yes |
RE:0200 | The content was blocked | No |
RE:0201 | The number is blacklisted | No |
RE:0202 | Too many messages to this number too fast | Yes |
RE:0211 | The Sender ID was refused | No |
RE:0212 | The signature was blocked | No |
RE:0213 | The same content was sent again | No |
RE:0214 | The number is high risk | No |
RE:0215 | The signature was not reported to the operator | No |
RE:0305 | The operator is not supported | No |
RE:0307 | The message ID is wrong | No |
RE:0500 | Upstream's system failed | Yes |
An upstream carrier may send a code that is not in this list. Trust the permanent field: true means sending again will fail the same way.
SMPP errors
These are the statuses Telrioz returns to an SMPP client. They are separate from the message errors above, so each row here has its own anchor starting with smpp-.
| Status | Name | When | Fix |
|---|---|---|---|
0x00000001 | ESME_RINVMSGLEN | A bind or submit_sm that we cannot read. | Check the PDU length and that every field is complete. |
0x00000003 | ESME_RINVCMDID | You sent a command we do not support, so the reply is a generic_nack. | Use only bind, submit_sm, enquire_link and unbind. Send other requests through the REST API. |
0x00000004 | ESME_RINVBNDSTS | You sent a request before you bound, or a submit_sm on a receiver bind. The session closes in the second case. | Bind first. To send, bind as transmitter or transceiver. |
0x00000005 | ESME_RALYBND | You sent a bind on a session that is already bound. | Keep using the bound session, or unbind first. |
0x00000008 | ESME_RSYSERR | We do not support data_sm, or we are shutting down and take no new texts. | Use submit_sm. If it is a shutdown, reconnect after a few seconds. |
0x0000000A | ESME_RINVSRCADR | The Sender ID is not approved for the number's operator. | Send from a Sender ID that is approved, or request it in Messaging → Sender IDs. |
0x0000000B | ESME_RINVDSTADR | The number is invalid, there is no Route for it, or the Route has no price for it. An empty destination gives the same status. | Check the number in international format and that your Gateway has a Route to that country. |
0x0000000D | ESME_RBINDFAIL | The bind is refused: your IP is not in Allowed IPs, the login has no Allowed IPs, the account is not active, or the login is at its bind limit. | Ask for your IP in Settings → Security → Request a change, or unbind a session. Then bind again. |
0x0000000E | ESME_RINVPASWD | The system_id is unknown or the password is wrong. | Check both in the dashboard: Developers → Credentials lists your system IDs, and shows each password to your account's Super Admin. |
0x0000000F | ESME_RINVSYSID | The account is suspended or not active, so it cannot send. | Contact support to activate the account. |
0x00000014 | ESME_RMSGQFUL | We cannot take the text now. | Retry after a few seconds. Retrying may work. |
0x00000045 | ESME_RSUBMITFAIL | The text is not accepted: your Gateway has no Route, the balance is too low, or the OTP limit for the number is reached. | Top up the balance, check the Gateway, or try the number again the next day. Retrying the same text will not help. |
0x00000058 | ESME_RTHROTTLED | You send faster than your SMPP login's speed limit. | Slow down and retry. Retrying may work. |