Last updated: 2018-06-01 16:24:39
Common Error Codes
The error codes in the returned result indicate the result of the call to a cloud API. "code" is common error code, which applies to APIs of all modules. A code of 0 means the call is successful. Other values mean the call fails. If a call fails, you can find out the cause of the error and take appropriate actions based on the following table.
|Error Code||Error Type||Description|
|4000||Invalid request parameter||Required parameter is missing, or parameter value is in an incorrect format. For relevant 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 blocked or not within the user range of the API.|
|4400||Quota exceeded||The number of requests exceeds the quota limit. For more information, please see the "Request Quota" section in the document.|
|4500||Replay attack||The Nonce and Timestamp parameters ensure that each request is 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||Unsupported protocol||The protocol is not supported. For more information, please see the relevant document.|
|5000||Resource does not exist||The instance corresponding to the resource ID does not exist, or the instance has been returned, or another user's resource is accessed.|
|5100||Operation on the resource failed||The operation performed on the resource failed. For error message, please see the "message" field in error description. Try again later or contact customer service for help.|
|5200||Failed to purchase the resource||The resource purchase failed. This may be caused by unsupported instance configuration or insufficient resource.|
|5300||Failed to purchase the resource||The resource purchase failed because of insufficient balance.|
|5400||Some of operations successful||Some of the batch operations were successful. 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 with the server||An internal error occurred with the server. Try again later or contact customer service for help.|
|6100||Not supported by the version||This API is not supported in this version or is under maintenance. Note: When this error occurs, check whether the domain name for the API is correct. Domain name may vary with different modules.|
|6200||API is unavailable||The API is under maintenance and is unavailable. Try again later.|
Module Error Codes
"message" field indicates errors related to modules.
"message": "(100004) incorrect projectId"
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. You can identify the cause of error based on error description.