> For the complete documentation index, see [llms.txt](https://doc1.antgst.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc1.antgst.com/readme/errors.md).

# 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:

```json
{
    "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.

<table><thead><tr><th width="276" data-type="number">code</th><th>massage</th></tr></thead><tbody><tr><td>-20</td><td>Params can't be empty!</td></tr><tr><td>-21</td><td>JSON format error!</td></tr><tr><td>-22</td><td>Auth secret error!</td></tr><tr><td>-23</td><td>Account exception!</td></tr><tr><td>-24</td><td>Unsupported country code</td></tr><tr><td>-25</td><td>Params Too long!</td></tr><tr><td>-26</td><td>Phone number error!</td></tr><tr><td>-27</td><td>Params error!</td></tr><tr><td>-28</td><td>IVR does not exist!</td></tr><tr><td>-29</td><td>Ip whitelist error!</td></tr><tr><td>-30</td><td>Account balance is insufficient!</td></tr><tr><td>-31</td><td>HLR channel error!</td></tr><tr><td>-32</td><td>The number has reached the request limit</td></tr><tr><td>-33</td><td>Params type error!</td></tr><tr><td>-34</td><td>Agent can't send!</td></tr><tr><td>404</td><td>Not Found url error</td></tr><tr><td>400</td><td>Required request body is missing</td></tr><tr><td>500</td><td>Something goes wrong with our servers. These are rare.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc1.antgst.com/readme/errors.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
