
# 错误码
#### 背景信息
- 接口返回的错误码与Error Message不具有一一对应关系，表中只是列出比较常见的一种Error Message。
- 本服务接口以异步接口居多，有的错误码是在查询任务的返回体中体现的，http状态码有可能不是很准确。
- 本服务对网络、存储等服务具有强依赖性，Error Message显示依赖服务的错误消息时，处理措施需要联系技术支持。
 
#### 错误码说明
当您调用API时，如果遇到"APIGW"开头的错误码，请参见[API网关错误码](https://support.huaweicloud.com/devg-apisign/api-sign-errorcode.html)进行处理。
| 状态码 | 错误码      | 错误信息                                                                                                                                                         | 描述                      | 处理措施                                                                                  |
|:---|:---|:---|:---|:---|
| 400 | DEH.0001 | Request body parsing failed, please check if the request data is correct.                                                                                    | 解析请求体失败                 | 请检查请求数据是否正确                                                                           |
| 400 | DEH.0006 | An error has occurred in job submission. Try again later or contact customer service.                                                                        | 提交Job失败                 | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.0018 | Illegal parameter. Try again later or contact customer service.                                                                                              | 参数不合法                   | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.0019 | Failed to query enterprise project id. Try again later or contact customer service.                                                                          | 查询企业项目Id失败              | 请参考返回的error message，或者联系技术支持                                                          |
| 403 | DEH.0033 | Operations are prohibited on the client due to permissions. Check token permissions. For details, see the error message returned by the API.                 | 客户端禁止，权限不足              | 权限不足，请确认token权限，详情请参考接口返回的error message                                               |
| 400 | DEH.0051 | Failed to query the dedicated host quota of the tenant. Try again later or contact customer service.                                                         | 查询租户专属主机配额失败            | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.0052 | PDP authentication failed.                                                                                                                                   | PDP鉴权失败                 | 请配置对应的权限                                                                              |
| 403 | DEH.0054 | Your account lacks the necessary permissions. Try again later or contact customer service.                                                                   | 账户受限                    | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.0055 | Failed to update server status scene.                                                                                                                        | 更新专属主机状态场景失败            | 更新专属主机状态时，scene可以为空。如果不为空，请检查scene是否为POLICE、ILLEGAL、VERIFY、PARTNER或DELETE_ACCOUNT中的一个 |
| 400 | DEH.1007 | Failed to access the OpenStack. Try again later or contact customer service.                                                                                 | 访问OpenStack失败           | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3004 | Failed to allocate dedicated hosts. Try again later or contact customer service.                                                                             | 创建专属主机失败                | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3009 | OpenStack access timed out. For details, contact technical support.                                                                                          | 访问OpenStack超时           | 具体原因请联系技术支持                                                                           |
| 500 | DEH.3011 | System error. Try again later or contact customer service.                                                                                                   | 系统错误                    | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3016 | Failed to call the IAM API. Try again later or contact customer service.                                                                                     | 访问IAM失败                 | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3028 | Failed to allocate dedicated host. Try again later or contact customer service.                                                                              | 分配专属主机失败                | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3039 | Failed to release dedicated host. Try again later or contact customer service.                                                                               | 释放专属主机失败                | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3040 | Failed to list dedicated hosts. Try again later or contact customer service.                                                                                 | 列出专属主机失败                | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3041 | Failed to get dedicated host. Try again later or contact customer service.                                                                                   | 获取专属主机失败                | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3042 | Failed to list dedicated host resource types. Try again later or contact customer service.                                                                   | 列出专属主机资源类型失败            | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3043 | Failed to list dedicated host types. Try again later or contact customer service.                                                                            | 列出专属主机类型失败              | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3044 | Failed to update dedicated host. Try again later or contact customer service.                                                                                | 更新专属主机失败                | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3045 | Failed to list dedicated host servers. Try again later or contact customer service.                                                                          | 列出专属主机服务器失败             | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3046 | Failed to list dedicated host resource type flavors. Try again later or contact customer service.                                                            | 列出专属主机资源类型规格失败          | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3047 | Failed to get domain name. Please check if the domain name is correct.                                                                                       | 获取域名失败                  | 请检查域名是否正确                                                                             |
| 500 | DEH.3048 | Failed to get dedicated hosts version information. Try again later or contact customer service.                                                              | 获取版本信息失败                | 请参考返回的error message，或者联系技术支持                                                          |
| 404 | DEH.3049 | The requested version is not supported. Try again later or contact customer service.                                                                         | 版本不支持                   | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3050 | Request api version is incorrect. Please check if the api version in the request is correct.                                                                 | 请求版本信息错误                | 请检查请求中的版本信息是否正确                                                                       |
| 400 | DEH.3051 | Failed to list dedicated host resources. Try again later or contact customer service.                                                                        | 创建专属主机时资源不足导致列出专属主机资源失败 | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3052 | Authentication failed. Try again later or contact customer service.                                                                                          | 升权失败                    | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.3054 | Failed to terminate the dedicated host server. Try again later or contact customer service.                                                                  | 终止专属主机失败                | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.4001 | Failed to delete the dedicated host because it has associated instances. Please delete all associated instances in the current dedicated host and try again. | 存在关联实例专属主机删除失败          | 请删除目前专属主机中所有关联的实例后重试                                                                  |
| 400 | DEH.4002 | Releasing dedicated hosts in prepaid charging mode is not supported, please check the charging model.                                                        | 不支持释放预付费模式的专属主机         | 当前不支持释放包周期计费模式下的专属主机，请检查计费模式                                                          |
| 400 | DEH.4003 | Failed to create the dedicated host due to no flavor matching. Try again later or contact customer service.                                                  | 未匹配可用规格创建专属主机失败         | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.4004 | Please check whether the current region supports the current charging mode.                                                                                  | 计费模式不支持                 | 请检查当前Region是否支持目前的计费模式                                                                |
| 400 | DEH.4005 | An error has occurred in order submission. Try again later or contact customer service.                                                                      | 提交订单异常                  | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.4006 | An error has occurred when querying dedicated hosts by tags. Try again later or contact customer service.                                                    | 按标签查询专属主机失败             | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.4007 | An error has occurred when adding or removing dedicated host tags. Try again later or contact customer service.                                              | 添加或删除专属主机标签请求异常         | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.4008 | An error has occurred while querying the dedicated host metadata. Try again later or contact customer service.                                               | 查询专属主机元数据请求异常           | 请参考返回的error message，或者联系技术支持                                                          |
| 400 | DEH.4009 | Tag policy compliance verification failed. Please check the tag policy or contact technical support.                                                         | Tag policy合规性校验不通过      | 请检查Tag policy策略，或者联系技术支持                                                              |
| 400 | DEH.4010 | Failed to list dedicated host types. Try again later or contact customer service.                                                                            | 列出专属主机类型列表失败            | 请参考返回的error message，或者联系技术支持                                                          |
| 403 | Pdp.0001 | Policy doesn't allow %s to be performed.                                                                                                                     | API鉴权失败                 | 请参考API授权项列表，在IAM增加相关权限                                                                |
| 400 | CMM.0101 | Please check if the parameters in the request are correct.                                                                                                   | 参数无效                    | 请检查请求中的参数是否正确                                                                         |
   
