API Error Codes
Built-in API Error Codes
Error codes of APIs such as
https://webar.qcloud.com/sdk/xxx
.
The response structure is as follows:{"Code": xxx,"Message": "xxx"}
Successful requests
If
Code
is 0, a request is successful, and information will be returned in Data
.{Code: 0,Data:{...}}
Authentication errors
If
Code
is a value from 100 to 104, an authentication error occurred. The response status code is 401
.{"100":{en: "Missing authentication parameter."},"101":{en: "Signature timeout."},"102":{en: "Unable to find the user."},"103":{en: "Signature error."},"104":{en: "Mismatch of referer or WeChatAppId."}}
Request parameter errors
If
Code
is -2, a request parameter error occurred. For details, see the value of Message
.{"Code": -2,"Message": "LicenseKey must be a string."}
Business verification errors
If
Code
is greater than 1000, a business verification error occurred. For details, see the value of Message
.{"Code": 2007,"Message": "The project does not exist."}
Unknown errors
If
Code
is -1, an unknown error occurred.{"Code": -1,"Message": "Unknown error."}