edit-icon download-icon

Response structure

Last Updated: Apr 02, 2018

After you make an API request, an HTTP status code is returned. 2xx indicates that the request has succeeded; 4xx or 5xx indicates that an error occurred while processing the request. You can identify the cause of the error by using the HTTP status code and its description. If the problem cannot be solved, you can contact our support team, and provide the RequestId and the HostId which are included in the response of an unsuccessful request, to help us quickly find the resolution.

The response text is JSON formatted. If you make the API request by using tools that are not provided by Alibaba Cloud, you can customize the response format in the request parameters.

In the example responses we present as follows, we use line breaks to separate the original whole line of text for readability.

Successful results

JSON example

  1. {
  2. "Name": "CreateTest",
  3. "OssBucketName": "yuanchuang",
  4. "OssKeyPrefix": "",
  5. "RoleName": "aliyunactiontraildefaultrole"
  6. }

Error results

JSON example

  1. {
  2. "RequestId": "0BC51021-1740-4C13-8072-4C1CD1D6B1F2",
  3. "HostId": "actiontrail.cn-hangzhou.aliyuncs.com",
  4. "Code": "TrailAlreadyExistsException",
  5. "Message": "account name(CreateTest) and region(cn-hangzhou) is already exist"
  6. }

Common error codes

Name Description Status code
InvalidAction The parameter of the operation is invalid. 400
InvalidParameterValue The parameter value is invalid. 400
MissingAction Cannot find the parameter of the operation. 400
MissingParameter A required parameter is missing. 400
Inactive The ActionTrail service is not enabled. 403
NeedRamAuthorize The specified RAM user does not exist. 403
InternalFailure The server encountered an unknown internal error. 500
InternalServerError The server encountered an internal error. 500
ActionNotImplemented Unable to perform the specified operation. 501
ServiceUnavailable The service is unavailable. 503
Thank you! We've received your feedback.