Last updated: 2017-04-25 11:07:55
1. Common Error Code
The error code in the returned result indicates the result of user's call to the cloud API.
code is common error code, which applies to APIs of all modules. If the code is 0, it means the call succeeds. If not, it means the call fails. If the call fails, the user can find out the cause of the error based on the following table and take appropriate actions.
|Error Code||Error Type||Description|
|4000||Invalid request parameter||Required parameters are missing, or parameter valuesare not in the correct format. For specific error message, please see the message field in error description.|
|4100||Authentication failed||Signature authentication failed. For more information, please see the Authentication section in the document.|
|4200||Request expired||The request has expired. For more information, please see the Request Validity Period section in the document.|
|4300||Access denied||Account is suspended or not within the user range of the API.|
|4400||Quota exceed||The number of requests exceeds the quota. For more information, please see the Request Quota section in the document.|
|4500||Replay attack||The Nonce and Timestamp parameters can ensure that each request will be executed only once on the server. Therefore, the Nonce value cannot be the same as last one, and the difference between Timestamp and Tencent server time cannot be greater than 2 hours.|
|4600||Protocol is not supported||The protocol is not supported. For more information, please see the relevant document.|
|5000||Resource does not exist||The instance corresponding to resource ID does not exist, or the instance has been returned, or another user's resource is accessed.|
|5100||Resource operation failed||The operation performed on the resource failed. For specific error message, please see the message field in error description. Try again later or contact customer service personnel for help.|
|5200||Failed to purchase resource||Resource purchase failed. This may be caused by unsupported instance configuration or insufficient resource.|
|5300||Failed to purchase resource||Resource purchase failed because of insufficient balance.|
|5400||Part of operations performed successfully||Part of the batch operations have been performed successfully. For more information, please see the returned value of method.|
|5500||User failed to pass identity verification||Resource purchase failed because the user failed to pass identity verification.|
|6000||Internal error on the server||An internal error occurred on the server. Try again later or contact customer service personnel for help.|
|6100||Not supported by the version||This API is not supported in this version or the API is under maintenance. Note: When this error occurs, first check whether the domain of the API is correct. Different modules may have different domains.|
|6200||API is temporarily unavailable||The API is under maintenance and is unavailable. Please try again later.|
2. Module Error Code
message field indicates errors related to modules.
"message": "(-514) Resource already exists"
It consists of two parts - the string within () indicates the module error code, and the string following () is the error description.
Different modules may produce different errors. The user can identify the cause of error based on error description.
|-503||Incorrect request parameter||InvalidParameter|
|-507||Limit has been exceeded||OperationDenied.ExceedLimit|
|-513||DB operation failed||InternalError.DBoperationFail|
|-514||Resource already exists||OperationDenied.SourceAlreadyExists|
|-509||Incorrect combination of dimensions||InvalidParameter.DimensionGroupError|
|-502||Resource does not exist||OperationDenied.SourceNotExists|
|-515||Unable to operate because a sub-resource exists||OperationDenied.SubresourceExist|
|-505||Parameter is missing||InvalidParameter.MissingParameter|