接口返回成功设置http状态码为200,接口返回错误时设置http状态码为标准的http错误码。
HTTP状态码 | 错误代码(CODE) | 错误信息(MESSAGE) | 备注 |
---|---|---|---|
200 | Success | Success | 成功 |
403 | Forbidden | User not authorized to operate on the specified resource. | 无权限 |
400 | InvalidSignature | The request signature does not conform to chinatelecom standards. | 非法签名 |
400 | InvalidSignature.Time | the time parameter is out of date. | 时间过期 |
400 | Insufficient | Resources is not enough. | 资源不够 |
400 | Insufficient.CPU | CPU is not enough. | |
400 | Insufficient.MEM | MEM is not enough. | |
400 | Insufficient.RawDisk | Raw disk is not enough. | |
400 | Insufficient.GPU | GPU is not enough. | |
400 | Insufficient.CloudDisk | CloudDisk is not enough. | |
400 | Insufficient.IP | IP is not enough. | |
400 | SpecificationNotExist | The specification of this cluster is not exist | 规格不存在 |
400 | SpecificationNotExist.Evm | The evm specification of this cluster is not exist | |
400 | SpecificationNotExist.IP | The ip specification of this cluster is not exist | |
400 | SpecificationNotExist.BandWith | The bandwith specification of this cluster is not exist | |
500 | InternalError | The request processing has failed due to some unknown error. | 内部系统错误 |
400 | InvalidParamater | %s is not valid. | 参数非法,可指明具体的参数非法 |
400 | MissingParameter | %s is missing. | 参数丢失,可指明具体的参数丢失 |