公共错误码分为客户端错误码和服务端错误码。

客户端错误码

错误码 错误信息 HTTP状态码 描述
UnknownError The request processing has failed due to some unknown error. 400 客户端出现非服务端原因的未知错误。
MissingParameter The input parameter {name} should be specified. 400 缺少参数,name为参数名。
One of the input parameters {names} should be specified. 400 缺少参数,必须指定多个参数中的一个。names为相关的参数的列表。
The input parameter {name} should be specified, {reason}. 400 缺少参数,name为参数名,reason为原因。
InvalidParameter The specified parameter {name} is invalid. 400 无效参数,name为参数名。
The specified parameter {name} is invalid, {reason}. 400 无效参数,name为参数名,reason为原因。
MultipleParameter Only one of the input parameters {names} can be specified. 400 指定参数过多,只能指定多个参数中的一个。names为相关的参数的列表。
InvalidIdempotenceParameter The specified parameters are different from before. 400 幂等token相同但是参数不同。
LastTokenProcessing The last token request is processing. 400 正在处理上一条令牌请求,请您稍后再试。
Invalid Data supplied was not valid: {reason}. 400 无效值,reason为原因。
InvalidValue {reason}. 400 无效值,reason为原因。
RequestLimitExceeded Request limit exceeded: {reason}. 400 请求包含超过限制的内容,reason为原因。部分限制可通过调整配额改变。
NotSupported {feature} is not supported. 400 不支持feature,feature为特性或操作。
MismatchNextToken {name} mismatches next token. 400 NextToken不匹配,name为不匹配项。
AssumeRoleFailure Fail to assume role {name}: {reason} 400 ROS获取一个扮演该角色的临时身份失败。name为RAM角色名,reason为原因。
Forbidden You are not authorized to complete this action. 403 您无权完成此操作。
A required authorization for the specified action {api} is not supplied. Code: {code} RequestId: {request_id} 403 用户没有授权ROS调用接口。api为接口名,code为错误码,request_id为请求ID。
AccountTypeNotSupported Account type not supported. 403 账号类型不支持。
NotFound {reason}. 404 请求包含不存在的内容,reason为原因。
TerraformStackNotSupported Terraform stack does not support {feature}. 400 Terraform资源栈不支持某功能,feature为功能名。
Terraform stack template does not support {feature}. 400 Terraform资源栈模板不支持某功能,feature为功能名。
Terraform stack is not supported. 400 Terraform资源栈功能未对当前用户开放。

服务端错误码

错误码 错误信息 HTTP状态码 描述
InternalError Server error. 500 内部错误。
ServiceUnavailable The request has failed due to a temporary failure of the server. 503 服务器故障,请重试。如果多次尝试失败,请提交工单。