API Response Information
Response Structure
In the API response information,
status
represents whether the request was successful, other result information is placed in theres
field, andrequest_id
contains the ID of this requestThe standard return format is
{ "status": true/false, // Whether the interface was successfully called "res": { // Call result ... }, "request_id": "tr_xxxxxxxxxx" // Request ID }
Error Codes
errType Name | HTTP Status Code | Description |
---|---|---|
api_not_find | 404 | API or corresponding version not found |
req_method_error | 405 | Incorrect request method (such as GET, POST) |
req_unauthorized | 401 | Authentication failed (any detailed error will result in this response, please check carefully!) |
resource_no_valid | 402 | No resources available to call the interface, such as no resource package or insufficient account balance |
image_missing | 413 | No image file uploaded |
image_oversize | 413 | Image file too large |
sever_closed | 503 | Server not started/under maintenance |
server_error | 500 | Internal server error |
exceed_max_qps | 429 | Exceeded maximum QPS, please try again later |
exceed_max_ccy | 429 | Exceeded maximum concurrent requests, please try again later |
server_inference_error | 500 | Server inference error |
image_proc_error | 500 | Error processing uploaded image |
invalid_param | 500 | Server error caused by invalid parameters |
too_many_file | 500 | Server error caused by too many files |
no_file_error | 500 | Server error caused by no files |