DEVELOPER GUIDEv1
Error Codes
| Code | Description | |
|---|---|---|
| 1 | Phone number is opted out. | |
| 2 | Forbidden words. | |
| 3 | Empty MMS resource. | |
| 4 | Unprocessable entity. | |
| 5 | Not enough credits. | |
| 6 | API App is NOT activated. | |
| 7 | Invalid IP address. | |
| 8 | SMS Sending Failed - limitation has been reach: SMS with same content can be sent 1 time every 10 seconds. | |
| 301 | Sender Long Code is temporarily blocked. | |
| 302 | Sender Long Code is permanently blocked. | |
| 1000 | Phone number is opted out globally. | |
| 1001 | Phone number is blocked globally. | |
| > 10000 | Content blocked by carriers or rejected without details provided. |
Example Error Response Headers:
Response headers example
Status Code: 422 Data Validation Failed.Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0Connection: Keep-AliveContent-Length: 171Content-Type: application/xml; charset=UTF-8Date: Tue, 29 Aug 2017 13:16:26 GMTExpires: Thu, 19 Nov 2017 08:52:00 GMTKeep-Alive: timeout=15, max=100Pragma: no-cacheServer: nginx (CentOS)X-Powered-By: PHP/5.6.16X-Rate-Limit-Limit: 1000X-Rate-Limit-Remaining: 999X-Rate-Limit-Reset: 0Example Error Response Body:
JSON response example
{
"name":"Unprocessable entity",
"message": "Phone number is opted out.",
"code":1,
"status":422
}XML response example
<response>
<name>Unprocessable entity</name>
<message>Phone number is opted out.</message>
<code>1</code>
<status>422</status>
</response>Reference from the ProTexting documentation catalog. Code examples are illustrative; this page does not execute API requests.