The message status codes, error codes and message states the Aerialink API returns, and what each one means.
The API reports results in three ways: a message status code that tracks delivery, an Aerialink error code when an account, security or request check fails, and a message state in delivery callbacks and status responses. This page lists all three.
Message status codes
Delivery tracking uses these codes. The two 4xxxx codes appear only when the message requested registered delivery.
| Code | Status | Description |
|---|---|---|
10000 |
Pending | The message has not yet been processed. |
20000 |
Queued/ |
The message has been queued and is in process. |
30000 |
Sent/ |
The message has been sent and is awaiting delivery confirmation. |
30003 |
Error | An error occurred while processing this message. |
30004 |
Filtered | This message was blocked by spam filters. |
40000 |
Accepted | The destination operator accepted the message. Requires registered delivery. |
40001 |
Delivered | The destination operator confirmed delivery. Requires registered delivery. |
Error codes
Authentication, request and routing problems return one of these codes:
| Code | Description |
|---|---|
E100001 |
Authentication failure: security credentials were not provided in the request. |
E100002 |
Authentication failure: security credentials are not valid or are disabled. |
E100003 |
Authentication failure: the account is not active, is disabled, or is suspended. |
E100004 |
Authentication failure: the firewall IP address is not whitelisted. |
E100005 |
Authentication failure: permission to the requested resource is not allowed. |
E200001 |
Missing required parameter. |
E200002 |
Invalid source address specified, or missing or invalid parameters. |
E200003 |
Invalid request method for the resource. |
E500001 |
Message send failed. |
E500002 |
The number is not in a registered state to route the message. |
Message states
These values appear in the state field of delivery callbacks and status responses. There are two sets. Carrier states sent over SMPP are forwarded exactly as received. Carriers connected over HTTP report the platform's normalized states.
Carrier-sent states (SMPP)
| State | Description |
|---|---|
ENROUTE |
The message is in transit to the handset. |
DELIVRD |
The message was delivered to the handset. |
EXPIRED |
The message validity period expired before delivery. |
DELETED |
The message was deleted before delivery. |
ACCEPTD |
The operator accepted the message. |
UNDELIV |
The message is undeliverable. |
UNKNOWN |
The message state is unknown. |
REJECTD |
The operator rejected the message. |
DELIVRD, UNDELIV, ACCEPTD and REJECTD are SMPP's own seven-character state names. They are spelled correctly.
Platform states (HTTP carriers)
| State | Description |
|---|---|
SCHEDULED |
The message is scheduled for future delivery. |
DELIVERED |
The message was delivered to the handset. |
UNDELIVERABLE |
The message could not be delivered. |
FAILED |
Message processing failed. |
REJECTED |
The message was rejected. |
DELIVRD and DELIVERED mean the same thing, as do UNDELIV and UNDELIVERABLE, and REJECTD and REJECTED. If your code matches on state, handle both spellings: which one arrives depends on how the carrier is connected, not on your request. RCS delivery callbacks use the platform set, so status. groupName is DELIVERED or UNDELIVERABLE.
Numbers Lookup error codes
When a Numbers Lookup request succeeds at the HTTP level (status 200 or 202), any problem is reported in the response body as a seven-character code: E followed by six digits.
JSON · error response
{
"aerialink": {
"errorCode": "EXXXXXX",
"detail": "Description of the error."
}
}
XML · error response
<?xml version="1.0" encoding="UTF-8"?>
<aerialink>
<errorCode>EXXXXXX</errorCode>
<detail>Description of the error.</detail>
</aerialink>
| Code | Description |
|---|---|
E200001Department: Parameter Validation · Name: Forbidden |
Required parameters were not provided in the request. |
E300001Department: Data Format · Name: Bad Request |
The numbers parameter value format is invalid. |
E300002Department: Data Format · Name: Bad Request |
The cache parameter value format is invalid. |
E300003Department: Data Format · Name: Bad Request |
CallbackURL is not a valid HTTP URL. |
E400001Department: Content · Name: Bad Request |
The value of one or more parameters exceeds the maximum allowed content length or type. |
Send and receive SMS error codes
The SMS send and receive resources report problems the same way, in the aerialink object shown above.
| Code | Description |
|---|---|
E200001Department: Parameter Validation · Name: Forbidden |
Required parameters were not provided in the request. |
E300001Department: Data Format · Name: Bad Request |
A parameter value format is invalid. |
E400001Department: Content · Name: Bad Request |
The value of one or more parameters exceeds the maximum allowed content length or type. |
What to explore next
- Aerialink RCS Messages API Documentation: send RCS text, media, card and carousel messages
- Aerialink RCS Webhooks: delivery receipts and inbound events, with the states they report
- Delivery Receipt: how delivery receipts work across SMS, MMS, 10DLC and RCS
Need more help?
If you need further assistance, our support team is ready to help you.
Comments
0 comments
Please sign in to leave a comment.