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.

Last updated