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 |
Last updated