
# 错误码
调用接口出错后，将不会返回结果数据。调用方可根据每个接口对应的错误码来定位错误原因。 当调用出错时，HTTP 请求返回一个 4xx 或 5xx 的 HTTP 状态码。返回的消息体中是具体的错误代码及错误信息。在调用方找不到错误原因时，可以联系华为云客服，并提供错误码，以便我们尽快帮您解决问题。
#### 错误响应Body体格式说明
当接口调用出错时，会返回错误码及错误信息说明，错误响应的Body体格式如下所示。
```
{ 
    "message": "The format of message is error", 
    "code": "DOMAIN.000001" 
}
```
其中，code表示错误码，message表示错误描述信息。
#### 错误码说明
当您调用API时，如果遇到"APIGW"开头的错误码，请参见[API网关错误码](https://support.huaweicloud.com/devg-apisign/api-sign-errorcode.html)进行处理。
表1错误码 
| 状态码 | 错误码           | 错误信息                                                                                                  | 描述                     | 处理措施                                          |
|:---|:---|:---|:---|:---|
| 500 | DOMAIN.000001 | Service internal error.                                                                               | 系统内部异常                 | 系统内部异常                                        |
| 400 | DOMAIN.000002 | Invalid request.                                                                                      | 无效的请求。                 | 无效的请求，检查入参是否符合接口要求                            |
| 400 | DOMAIN.000005 | The offset parameter is invalid.                                                                      | 请求参数offset非法           | 请求参数offset非法                                  |
| 400 | DOMAIN.000006 | The limit parameter is invalid.                                                                       | 请求参数limit非法            | 请求参数limit非法                                   |
| 400 | DOMAIN.000007 | The domainid parameter is invalid.                                                                    | 请求参数租户编号非法             | 请求参数租户编号非法                                    |
| 400 | DOMAIN.000010 | Upload file parse data error.                                                                         | 文件上传数据解析出错             | 文件上传数据解析出错                                    |
| 401 | DOMAIN.000013 | You do not have the permission to perform this operation using the API.                               | API权限不足，检查接口使用的token权限 | API权限不足，检查接口使用的token权限；管理类API的操作权限需要帐号的管理员权限。 |
| 400 | DOMAIN.000014 | Request param is invalid.                                                                             | 请求参数不合法                | 请求参数不合法                                       |
| 400 | DOMAIN.010001 | The credential_id parameter is null.                                                                  | 所有人证件号码不能为空            | 所有人证件号码不能为空                                   |
| 400 | DOMAIN.010005 | The credential_id parameter is invalid.                                                               | 域名实名证件号码无效             | 请检查输入的证件号码格式                                  |
| 400 | DOMAIN.010006 | Domain name does not exist.                                                                           | 域名不存在                  | 请检查输入的域名是否在当前账号下                              |
| 400 | DOMAIN.010025 | The duration parameter should be in range 1 \~ 10.                                                    | 域名注册周期非法               | 域名注册周期非法                                      |
| 400 | DOMAIN.010026 | Domain's status is auditing, can not operate.                                                         | 域名实名认证审核中              | 域名实名认证审核中                                     |
| 400 | DOMAIN.010029 | Invalid domain name.                                                                                  | 无效的域名名称                | 无效的域名名称                                       |
| 400 | DOMAIN.010030 | The domain already exists.                                                                            | 域名已存在                  | 域名已存在                                         |
| 400 | DOMAIN.010031 | The type of user only is COMPANY or PERSON.                                                           | 用户类型只能为PERSON或者COMPANY | 用户类型只能为PERSON或者COMPANY                        |
| 400 | DOMAIN.010032 | The credential type is invalid.                                                                       | 域名实名证件类型无效             | 域名实名证件类型无效                                    |
| 400 | DOMAIN.010034 | Parameter nameserver is invalid.                                                                      | nameserver非法           | nameserver非法                                  |
| 400 | DOMAIN.010057 | Insufficient domain quota.                                                                            | 域名配额不足                 | 域名配额不足                                        |
| 400 | DOMAIN.010068 | The number of Nameservers can not be more than 6.                                                     | nameserver的最大数量不能超过6个  | nameserver的最大数量不能超过6个                         |
| 400 | DOMAIN.010069 | The number of Nameservers can not be less than 2.                                                     | nameserver的最小数量不能小于2个  | nameserver的最小数量不能小于2个                         |
| 400 | DOMAIN.010071 | The list of nameservers can not be repeated.                                                          | nameserver的不能重复        | nameserver的不能重复                               |
| 400 | DOMAIN.010076 | The domain is verified, can not operate.                                                              | 域名已实名                  | 域名已实名                                         |
| 400 | DOMAIN.010077 | Query the The domain's status fail.                                                                   | 域名状态查询失败               | 域名状态查询失败                                      |
| 400 | DOMAIN.010084 | The domain renew failure,the period is wrong.                                                         | 域名无法续费，续费年数错误          | 域名无法续费，续费年数错误                                 |
| 400 | DOMAIN.010116 | Domain name contains sensitive words.                                                                 | 域名包含敏感词                | 域名包含敏感词                                       |
| 400 | DOMAIN.010117 | Domain name registerCn is inconsistent with register info.                                            | 所有者信息与注册信息不一致          | 所有者信息与注册信息不一致                                 |
| 400 | DOMAIN.020000 | The template does not exist.                                                                          | 信息模板不存在                | 信息模板不存在                                       |
| 400 | DOMAIN.020008 | The card number of register owner is invalid.                                                         | 模板实名证件号码无效             | 模板实名证件号码无效                                    |
| 400 | DOMAIN.020009 | Register owner's card number and file cannot be empty.                                                | 证件号码和文件不能为空            | 证件号码和文件不能为空                                   |
| 400 | DOMAIN.020022 | Template credential type is invalid.                                                                  | 模板实名证件类型无效             | 模板实名证件类型无效                                    |
| 400 | DOMAIN.020025 | Register owner's file's type is not jpeg.                                                             | 上传文件格式有误               | 上传文件格式有误                                      |
| 400 | DOMAIN.020030 | Insufficient template quota.                                                                          | 模板配额不足                 | 模板配额不足                                        |
| 400 | DOMAIN.020031 | Template's id is empty.                                                                               | 模板ID为空                 | 模板ID为空                                        |
| 400 | DOMAIN.020041 | The template is not certified.                                                                        | 模板没有实名认证               | 模板没有实名认证                                      |
| 400 | DOMAIN.020042 | The template is auditing, can not operate.                                                            | 模板实名认证中                | 模板实名认证中                                       |
| 400 | DOMAIN.020043 | The template is verified, can not operate.                                                            | 模板已实名                  | 模板已实名                                         |
| 400 | DOMAIN.020046 | The file upload fail.                                                                                 | 模板上传实名资料失败             | 模板上传实名资料失败                                    |
| 400 | DOMAIN.030001 | Unsupported TLD.                                                                                      | 不支持注册此种类型的域名           | 不支持注册此种类型的域名                                  |
| 400 | DOMAIN.030023 | This is a 10-year domain name and cannot be renewed.                                                  | 十年期域名不允许续费             | 十年期域名不允许续费                                    |
| 400 | DOMAIN.030028 | This operation is not allowed because the domain name is not in the validity period.                  | 域名不在有效期                | 域名不在有效期                                       |
| 400 | DOMAIN.100002 | Fail to get number of used template.                                                                  | 获取已使用的模板数量失败           | 获取已使用的模板数量失败                                  |
| 400 | DOMAIN.100006 | Invalid quota type.                                                                                   | 配额类型无效                 | 配额类型无效                                        |
| 403 | DOMAIN.100031 | User use default domain information template,not allow audit it,User should create yourself template. | 默认模板禁止实名认证             | 默认模板禁止实名认证                                    |
| 400 | DOMAIN.100043 | Domain audit error, not allowed to take any operation."                                               | 域名未实名，不能进行该操作          | 域名未实名，不能进行该操作                                 |
| 400 | DOMAIN.30022  | The email address is not verified.                                                                    | 邮箱未验证                  | 邮箱未验证                                         |
   
