狀態碼
更新時間 2024-09-19 09:53:59
最近更新時間: 2024-09-19 09:53:59
分享文章
通用的狀態碼說明。
接口返回成功設置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. | 參數丟失,可指明具體的參數丟失 |