ANT
  • Introduction
    • Authentication
    • Number
    • Errors
    • Rate Limits
  • ANT API
    • Balance
      • Retrieve balance
    • Sms
      • Marketing SMS
        • Send Marketing SMS
        • Send Bulk Marketing SMS
        • Scheduled Marketing SMS
        • Marketing SMS CallBack
      • 🔥OTP SMS
        • Send OTP SMS
        • OTP SMS CallBack
        • ⭐OTP Backfill Interface
      • Notification SMS
        • Send Notification SMS
        • Send Bulk Notification SMS
        • Scheduled Notification SMS
        • Notification SMS CallBack
    • Voip
      • IVR
        • IVR File Upload
        • IVR Task
        • IVR Callback
      • Call
        • Call the phone
        • Call record callback
    • Phone Number Validation
      • HLR Sever
      • Check Number Status
  • Webhooks
    • Test Webhooks
  • Demo
    • Java Demo
Powered by GitBook
On this page
  • Error Object
  • Error Codes
  1. Introduction

Errors

HTTP status code 2xx indicates that the request was successfully accepted. Otherwise, HTTP status code 4xx or 5xx indicates a problem. Codes in the 5xx range indicate an error with the ANT server When an error occurs, a structured response body is returned, the following is an example of an error response body:

{
    "msg": "auth secret error!",
    "code": -22
}

Error Object

code

REQUIRED. One of the server-defined error codes. Some 4xx errors that could be handled programmatically include an error code that briefly explains the error reported.

msg

A human-readable representation of the error. It is intended as an aid to developers and is not suitable for exposure to end users.

Error Codes

Below is a list of possible error codes, along with additional information about how to resolve them.

code
massage
-20

Params can't be empty!

-21

JSON format error!

-22

Auth secret error!

-23

Account exception!

-24

Unsupported country code

-25

Params Too long!

-26

Phone number error!

-27

Params error!

-28

IVR does not exist!

-29

Ip whitelist error!

-30

Account balance is insufficient!

-31

HLR channel error!

-32

The number has reached the request limit

-33

Params type error!

-34

Agent can't send!

404

Not Found url error

400

Required request body is missing

500

Something goes wrong with our servers. These are rare.

PreviousNumberNextRate Limits

Last updated 12 days ago