DEVELOPER GUIDEv1

Error Codes

CodeDescription
1Phone number is opted out.
2Forbidden words.

List Forbidden Words »

Forbidden Words & Phrases »

3Empty MMS resource.
4Unprocessable entity.
5Not enough credits.
6API App is NOT activated.
7Invalid IP address.
8SMS Sending Failed - limitation has been reach: SMS with same content can be sent 1 time every 10 seconds.
301Sender Long Code is temporarily blocked.
302Sender Long Code is permanently blocked.
1000Phone number is opted out globally.
1001Phone number is blocked globally.
> 10000Content 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: 0

Example 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.