# Errors

The ABCC API uses HTTP status codes to indicate the success or failure status of an API request.

* Return HTTP 2XX to indicate that the API request was successful
* Returning HTTP 4XX indicates that error information was provided when requesting the API, such as missing parameters, parameter errors, and account balance errors, etc.
* Returning HTTP 5XX indicates that the server sent an error during the API request.

| Error Code | Meaning               | MeaningDescription                                                                              |
| ---------- | --------------------- | ----------------------------------------------------------------------------------------------- |
| 200        | OK                    | request is normal                                                                               |
| 201        | Created               | request is normal                                                                               |
| 400        | Bad Request           | request is normal                                                                               |
| 401        | Unauthorized          | is generally caused by missing parameters and incorrect parameter format                        |
| 402        | Request Failed        | The parameter format is correct but the request failed, usually caused by business logic errors |
| 403        | Forbidden             | Forbidden to access                                                                             |
| 404        | Not Found             | The requested resource does not exist                                                           |
| 405        | Method Not Allowed    | Attempt to use a method not allowed by the server                                               |
| 406        | Not Acceptable        | The requested format parameter is incorrect                                                     |
| 410        | Gone                  | Request has been removed!                                                                       |
| 429        | Too Many Requests     | Too Many Requests!                                                                              |
| 500        | Internal Server Error | The server is abnormal, please try again later (uncontrollable abnormality of the server)       |
| 503        | Service Unavailable   | The server is under maintenance, please try again later (Server controllable exception)         |

**Error return format**

| Return attribute | Is it necessary? | Meaning                                          |
| ---------------- | ---------------- | ------------------------------------------------ |
| code             | Yes              | Error code, the error code defined by the server |
| message          | Yes              | return a specific error description              |


---

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

```
GET https://abcc-docs.gitbook.io/api/errors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
