
# 历史错误码
调用接口出错后，将不会返回结果数据。调用方可根据每个接口对应的错误码来定位错误原因。 当调用出错时，HTTP 请求返回一个 4xx 或 5xx 的 HTTP 状态码。返回的消息体中是具体的错误代码及错误信息。在调用方找不到错误原因时，可以联系华为云客服，并提供错误码，以便尽快帮您解决问题。
#### 错误响应Body体格式说明
当接口调用出错时，会返回错误码及错误信息说明，错误响应的Body体格式如下所示。
```
{
    "error_code": "OSM.0001",
    "error_msg": "failed"
}
```
其中，error_code表示错误码，error_msg表示错误描述信息。
#### 错误码说明
当您调用API时，如果遇到"APIGW"开头的错误码，请参见[API网关错误码](https://support.huaweicloud.com/devg-apisign/api-sign-errorcode.html)进行处理。
| 状态码 | 错误码          | 错误信息                                                                                    | 描述                         | 解决方案                                    |
|:---|:---|:---|:---|:---|
| 400 | OSM.0001     | Failed                                                                                  | 参数校验异常                     | 检查参数                                    |
| 401 | OSM.0002     | Unauthorized                                                                            | 未认证                        | 检查Token是否过期或者重新获取Token                  |
| 403 | OSM.0003     | Forbidden                                                                               | 非法操作                       | 非法操作                                    |
| 500 | OSM.0004     | Internal Server Error                                                                   | 内部错误                       | 联系技术支持工程师处理                             |
| 200 | OSM.01010001 | Param validation fail.                                                                  | 参数校验失败                     | 参考API文档核对参数信息                           |
| 200 | OSM.01010002 | No operation permission.                                                                | 无操作权限                      | 无操作权限                                   |
| 200 | OSM.01010003 | Account and password not match.                                                         | 帐号或者密码错误                   | 检查帐号或者密码                                |
| 200 | OSM.01010004 | You have asked for the order, please ask for it later.                                  | 催单过于频繁，稍后再催                | 催单过于频繁，稍后再催                             |
| 200 | OSM.01010005 | Upload accessory size exceeded limit today.                                             | 当天上传附件的大小超过限度              | 当天上传附件的大小超过限度                           |
| 200 | OSM.01010006 | Severity Id not exists.                                                                 | 严重性id不存在                   | 严重性id不存在                                |
| 200 | OSM.01010007 | This tenant has no role to create a case.                                               | 租户无角色信息                    | 参考错误信息，或者联系技术支持工程师                      |
| 200 | OSM.01010008 | Carbon copy email not valid.                                                            | 抄送邮箱不合法                    | 抄送邮箱不合法，检查下长度和格式                        |
| 200 | OSM.01010009 | Can't create case because of customer benefit not match rule.                           | 无法创建工单，因为支持计划权益不符合         | 查看当前用户支持计划权益，是否可以创建报障工单                 |
| 200 | OSM.01010010 | Verify not pass.                                                                        | 验证不通过                      | 参考错误信息，或联系支持工程师                         |
| 200 | OSM.01010011 | Can't get customer info from token.                                                     | 无法从token中获取客户              | 参考错误信息，或者联系技术工程师                        |
| 200 | OSM.01010012 | The type must be 0 or 1.                                                                | 类型必须是0或1                   | 类型必须是0或1                                |
| 200 | OSM.01010013 | The operation must be cancel or close or press or delete.                               | 操作类型必须是取消、关闭、催单或者删除        | 操作类型必须是取消、关闭、催单或者删除                     |
| 200 | OSM.01010014 | Operation fail.                                                                         | 服务内部异常                     | 联系技术支持工程师                               |
| 200 | OSM.01010015 | This case does not exist.                                                               | 工单不存在                      | 检查工单Id或者联系技术支持工程师                       |
| 200 | OSM.01010016 | The createFeedbacktypeReq's feedbackCreateInfos cannot be empty.                        | 创建反馈类型的请求不能为空              | 参考错误描述或者联系技术支持工程师                       |
| 200 | OSM.01010017 | Operation fail.                                                                         | 服务内部错误                     | 联系技术支持工程师                               |
| 200 | OSM.01010018 | Auth operate type not support.                                                          | 当前操作不支持                    | 参考错误信息或者联系技术支持工程师                       |
| 200 | OSM.01010019 | The operation is illegal.                                                               | 非法操作                       | 参考错误描述或者联系技术支持工程师.                      |
| 200 | OSM.01010020 | The customerId is exist.                                                                | 客户Id不存在                    | 查看客户Id                                  |
| 200 | OSM.01010021 | Cbh operation failed.                                                                   | 堡垒机异常                      | 联系技术支持工程师                               |
| 200 | OSM.01010022 | The case has just been created, please press the case later.                            | 工单刚创建，请稍后再催单               | 参考错误信息                                  |
| 200 | OSM.01010024 | Verify code resend too frequently.                                                      | 验证码发送过于频繁                  | 验证码五分钟有效，一分钟之内发送一次，请稍等或者联系技术支持工程师       |
| 200 | OSM.01010026 | Get businessType fail.                                                                  | 获取问题类型失败                   | 联系技术支持工程师                               |
| 200 | OSM.01010027 | The sourceId is not exist.                                                              | 来源id不存在                    | 检查来源id或者联系技术支持工程师                       |
| 200 | OSM.01010028 | The businessTypeId is not exist.                                                        | 问题类型id不存在                  | 查询问题类型id                                |
| 200 | OSM.01010029 | Get caseType fail.                                                                      | 获取工单类型失败                   | 联系技术支持工程师                               |
| 200 | OSM.01010030 | The caseTypeId is not exist.                                                            | 工单类型id不存在                  | 检查工单类型id                                |
| 200 | OSM.01010031 | The type is invalid.                                                                    | 类型非法                       | 检查类型或者联系技术支持工程师                         |
| 200 | OSM.01010032 | The authorization detail id is not exist.                                               | 授权项Id不存在                   | 检查授权项id或者联系技术支持工程师                      |
| 200 | OSM.01010033 | The regionId is not exist.                                                              | 区域Id不存在                    | 检查区域Id或者联系技术支持工程师                       |
| 200 | OSM.01010034 | The status is illegal for this operation.                                               | 当前状态非法                     | 检查状态或者联系技术支持工程师                         |
| 200 | OSM.01010035 | No group operation permission.                                                          | 没有同组工单处理权限                 | 添加同组工单处理权限或者联系技术支持工程师                   |
| 200 | OSM.01010036 | Exceeded the number of times the verify code send.                                      | 验证码发送次数达到最大值               | 参考错误描述或者联系技术支持工程师                       |
| 200 | OSM.01010037 | Exceeded the number of times the case limit was created.                                | 创建工单数量超过限制                 | 参考错误信息或者联系技术支持工程师                       |
| 200 | OSM.01010038 | Exceeded the number of times the case limit was created per day.                        | 创建工单的次数超过每天的限制             | 参考错误描述或者联系技术支持工程师                       |
| 200 | OSM.01010039 | The labelId is not exist.                                                               | 标签Id不存在                    | 检查标签Id                                  |
| 200 | OSM.01010040 | LabelName already exist.                                                                | 标签名称不能重复                   | 修改标签名称，重新提交                             |
| 200 | OSM.01010041 | The same domainId labels should not be over 30.                                         | 单租户标签数量不能超过30个             | 参考错误信息描述或者联系技术支持工程师                     |
| 200 | OSM.01010042 | The same caseId labels should not be over 5.                                            | 一个单只能关联5个或以下数量的标签          | Delete the labels number to 5 or fewer. |
| 200 | OSM.01010043 | The same caseId relations should not be over 3.                                         | 一个单只能关联三个其他单               | 删除关联单到3个及以下                             |
| 200 | OSM.01010044 | The case can not bind itself.                                                           | 不能关联本单                     | 请参考错误信息或者联系技术支持工程师                      |
| 200 | OSM.01010045 | The accessory is invalid.                                                               | 非法附件                       | 参考错误信息或者联系技术支持工程师                       |
| 200 | OSM.01010046 | Re-apply and withdraw and Reject and Agree only if the authorization is pending status. | 只有进行中才能进行重新发送、撤销、拒绝和同意授权操作 | 请参考错误信息或者联系技术支持工程师                      |
| 200 | OSM.01010047 | Target host connect time out.                                                           | 目标主机连接超时                   | 参考错误信息或者联系技术支持工程师                       |
   
