Error
If the request fails, we will return a response with error details. If the response is not received, it may mean that the network has timed out, and you can try again
HTTP Status Codes | Response code | Description |
---|---|---|
200 | 0 | OK - The request was processed successfully |
400 | 4000X | Bad request - The request contains missing parameters, is in an incorrect shape, or failed another validation test |
401 | 40001 | Unauthorized - Please verify that the authentication token is provided and is valid |
404 | 40004 | Not found - The requested endpoint does not exist |
500 | 5000X | The request is interrupted, which may be an unknown exception, or it may trigger some of our business rules and cause the process to be interrupted. Please tell us if you encounter this situation |
SubCode | Description |
---|---|
40001 | Unauthorized - Please verify that the authentication token is provided and is valid |
40004 | Not found - The requested endpoint does not exist |
40005 | Program rules processing interruption ,maybe your request body is not correct |
40006 | Parameter miss or format error |
50002 | System error,Unknown error |
50004 | Network timeout,you can try again |
Example 400 Error Response Body
{
"code": 40006,
"success": false,
"message": "Developer has not been registered"
}
Example 500 Error Response Body
{
"code": 50002,
"success": false,
"message": "Developer has not been registered"
}
Example 200 Response Body
{
"code": 0,
"success": true,
"data": {}
}