
# API错误码（应用、签名、模板）
![](https://support.huaweicloud.com/api-msgsms/public_sys-resources/note_3.0-zh-cn.png)
本章节为供应商、运营商以及华为平台状态码全集，状态码数量较多，**建议您使用快捷键Ctrl+F在界面进行搜索，找到您需要的错误码处理建议**。
#### 404问题处理
若调用接口时返回了404响应，请检查APP接入地址和访问URI（详见[开发准备](https://support.huaweicloud.com/devg-msgsms/sms_04_0006.html)）是否都填写正确，且拼接成了完整的请求URL，如"https://msgsms.cn-north-4.myhuaweicloud.com/v2/{project_id}/msgsms/apps"。
#### 错误码处理
调用应用、签名、模板接口会产生接口调用错误码，响应示例如下：
```
{
    "error_code": "MSGSMS.0076",
    "error_msg": "Message Application does not exist",
    "error_detail": "appKey=123"
}
```
error_code为API错误码字段，当您调用API时，如果遇到error_code 为"APIGW"开头的错误码，请参见[API网关错误码](https://support.huaweicloud.com/devg-apisign/api-sign-errorcode.html)进行处理。
更多服务错误码请参见[API错误中心](https://apierrorcenter.developer.huaweicloud.com/apierrorcenter)。
| 错误码         | 错误信息                                                                                   | 描述                     | 处理措施                                                                                                                                 |
|:---|:---|:---|:---|
| MSGSMS.0001 | Internal server error.                                                                 | 内部服务器错误。               | 请联系华为工程师分析解决。                                                                                                                        |
| MSGSMS.0002 | Invalid Parameter.                                                                     | 参数错误。                  | 请排查请求参数是否与文档中的保持一致。                                                                                                                  |
| MSGSMS.0003 | Request unauthorized.                                                                  | 请求未授权。                 | 请检查鉴权参数是否正确。                                                                                                                         |
| MSGSMS.0004 | Signature already exists.                                                              | 签名已存在。                 | 请更换签名后重试。                                                                                                                            |
| MSGSMS.0005 | Signature does not exist.                                                              | 签名不存在。                 | 请使用有效的签名后重试。                                                                                                                         |
| MSGSMS.0006 | Signature type and name is duplicate.                                                  | 签名类型和名称重复。             | 请更换签名类型或名称后重试。                                                                                                                       |
| MSGSMS.0007 | Signature not allow to update, signature status must be Reject.                        | 签名无法更新，状态必须为审核不通过。     | 请联系华为运营人员拒绝签名后重试。                                                                                                                    |
| MSGSMS.0008 | Template already exists.                                                               | 模板已存在。                 | 请更换模板后重试。                                                                                                                            |
| MSGSMS.0009 | Template does not exist.                                                               | 模板不存在。                 | 请使用有效的模板后重试。                                                                                                                         |
| MSGSMS.0010 | Template not allow to update, template flow status must be Reject.                     | 模板无法更新，状态必须为审核不通过。     | 请联系华为运营人员拒绝模板后重试。                                                                                                                    |
| MSGSMS.0011 | File does not exist.                                                                   | 文件不存在。                 | 请选择有效的文件后重试。                                                                                                                         |
| MSGSMS.0012 | Signature id invalid.                                                                  | 签名ID无效。                | 请更换有效的签名后重试。                                                                                                                         |
| MSGSMS.0013 | Service not yet opened.                                                                | 服务未开通。                 | 请先开通服务后重试。                                                                                                                           |
| MSGSMS.0014 | App does not exist.                                                                    | 应用不存在。                 | 请先创建应用或使用有效的应用重试。                                                                                                                    |
| MSGSMS.0015 | Template type cannot be empty or temp type invalid.                                    | 模板类型不能为空或无效。           | 请检查模板类型。                                                                                                                             |
| MSGSMS.0016 | Website domain name cannot be empty.                                                   | 网站域名不能为空。              | 请检查网站域名。                                                                                                                             |
| MSGSMS.0017 | Power attorney file id cannot be empty.                                                | 委托书文件ID不能为空。           | 请检查委托书文件ID。                                                                                                                          |
| MSGSMS.0018 | Signature type is invalid.                                                             | 签名类型无效。                | 请检查签名类型。                                                                                                                             |
| MSGSMS.0019 | Developer account has been blocked.                                                    | 开发者账号已被禁用。             | 请联系华为运营人员申请解禁。                                                                                                                       |
| MSGSMS.0020 | Order does not exist.                                                                  | 订单不存在。                 | 请开通MSGSMS云服务后重试。                                                                                                                     |
| MSGSMS.0023 | The number of variables does not match the content of the template.                    | 变量个数与模板内容不匹配。          | 请检查模板变量定义。                                                                                                                           |
| MSGSMS.0024 | Template variable index is not continuous.                                             | 模板变量索引不连续。             | 请检查模板变量定义。                                                                                                                           |
| MSGSMS.0025 | When the variable type is TEXT, the variable description cannot be empty.              | 变量为文字时，变量描述不能为空。       | 请检查模板变量定义。                                                                                                                           |
| MSGSMS.0026 | Subscription account name cannot be empty.                                             | 订阅账号名不能为空。             | 请检查订阅账号名。                                                                                                                            |
| MSGSMS.0027 | The operation is forbidden because tenant has been frozen.                             | 租户已冻结，不能执行此操作。         | 请联系华为运营人员申请解冻。                                                                                                                       |
| MSGSMS.0028 | The operation is forbidden because tenant has been restricted.                         | 租户已受限，不能执行此操作。         | 请联系华为运营人员申请解除限制。                                                                                                                     |
| MSGSMS.0029 | Operation failed.                                                                      | 操作失败。                  | 请联系华为工程师分析解决。                                                                                                                        |
| MSGSMS.0030 | Not supported Urge                                                                     | 不支持催审。                 | 请联系华为运营人员解决。                                                                                                                         |
| MSGSMS.0031 | Failed to Urge                                                                         | 催审失败。                  | 请联系华为运营人员解决。                                                                                                                         |
| MSGSMS.0032 | Signature Type for user is not supported                                               | 不支持该签名类型。              | 请检查签名类型。                                                                                                                             |
| MSGSMS.0033 | Signature is not found                                                                 | 没有找到签名。                | 请检查签名。                                                                                                                               |
| MSGSMS.0034 | Template type is not supported                                                         | 不支持该模板类型。              | 请检查模板类型。                                                                                                                             |
| MSGSMS.0035 | Failed to delete template from OMP                                                     | 删除模板失败。                | 请联系华为工程师分析解决。                                                                                                                        |
| MSGSMS.0036 | Message template is not found                                                          | 没有找到消息模板。              | 请检查模板类型。                                                                                                                             |
| MSGSMS.0038 | Start and end time exceeds 24 hours                                                    | 开始和结束时间超过24小时。         | 请检查开始和结束时间范围。                                                                                                                        |
| MSGSMS.0039 | Invalid day time format                                                                | 日期时间格式错误。              | 请检查日期时间格式。                                                                                                                           |
| MSGSMS.0041 | Signature does not exist                                                               | 签名不存在。                 | 请检查签名。                                                                                                                               |
| MSGSMS.0043 | File is not exist                                                                      | 文件不存在。                 | 请选择有效的文件后重试。                                                                                                                         |
| MSGSMS.0044 | Template is not exist                                                                  | 模板不存在。                 | 请使用有效的模板后重试。                                                                                                                         |
| MSGSMS.0045 | Customer name required                                                                 | 客户名称为必填。               | 请检查客户名称。                                                                                                                             |
| MSGSMS.0046 | Template name required                                                                 | 模板名称为必填。               | 请检查模板名称。                                                                                                                             |
| MSGSMS.0048 | Developer does not exist                                                               | 开发者不存在。                | 请联系华为工程师分析解决。                                                                                                                        |
| MSGSMS.0049 | Invalid token                                                                          | Token无效。               | 请检查鉴权参数是否正确。 供参考的排查项： 调用接口的时候，如果使用的是token鉴权，则token需要使用project级的token，而不是Global级token。Project级的token，就是在到IAM申请token的时候，project参数需要填写。 |
| MSGSMS.0050 | Invalid Appkey, app not found                                                          | 没有找到应用，app key无效。      | 请检查app key是否正确。                                                                                                                      |
| MSGSMS.0051 | Application Name is duplicated                                                         | 应用名称重复。                | 请检查应用名称。                                                                                                                             |
| MSGSMS.0053 | The number of applications is exceeded                                                 | 应用数量已超限。               | 请检查应用数量是否已超限，如果超限可联系华为运营人员解决。                                                                                                        |
| MSGSMS.0054 | Domain has no authority                                                                | 域名没有权限。                | 请联系华为运营人员解决。                                                                                                                         |
| MSGSMS.0055 | OMP create application is failed                                                       | OMP创建应用失败。             | 请联系华为工程师分析解决。                                                                                                                        |
| MSGSMS.0056 | User does not have permission for this operation                                       | 没有操作权限                 | 请联系华为运营人员解决。                                                                                                                         |
| MSGSMS.0057 | Application does not exist                                                             | 应用不存在。                 | 请检查应用是否存在。                                                                                                                           |
| MSGSMS.0058 | Invalid request                                                                        | 请求无效。                  | 请检查入参是否正确。                                                                                                                           |
| MSGSMS.0068 | Domain is empty. Request unauthorized.                                                 | 域名为空，请求未授权。            | 请检查鉴权参数是否正确。                                                                                                                         |
| MSGSMS.0076 | Message Application does not exist                                                     | 短信应用不存在。               | 请检查短信应用是否存在。                                                                                                                         |
| MSGSMS.0077 | Message Template Info does not EXIST                                                   | 短信模板信息不存在。             | 请检查短信模板是否存在。                                                                                                                         |
| MSGSMS.0078 | Invalid Country Name 1                                                                 | 国家名称1无效。               | 请检查国家名称1是否有效。                                                                                                                        |
| MSGSMS.0079 | Invalid Country Name 2                                                                 | 国家名称2无效。               | 请检查国家名称2是否有效。                                                                                                                        |
| MSGSMS.0080 | Invalid Country Name 3                                                                 | 国家名称3无效。               | 请检查国家名称3是否有效。                                                                                                                        |
| MSGSMS.0081 | Template parameters does not match.                                                    | 模板参数不匹配。               | 请检查模板参数是否匹配。                                                                                                                         |
| MSGSMS.0082 | Failed to delete CSE OMP Template                                                      | 删除CSE OMP模板失败。         | 请联系华为工程师分析解决。                                                                                                                        |
| MSGSMS.0083 | Message Batch Task does not exist                                                      | 短信群发任务不存在。             | 请检查群发任务是否存在。                                                                                                                         |
| MSGSMS.0084 | Invalid File                                                                           | 文件无效。                  | 请检查文件格式是否符合要求。                                                                                                                       |
| MSGSMS.0085 | Failed to read file                                                                    | 读取文件失败。                | 请联系华为工程师分析解决。                                                                                                                        |
| MSGSMS.0086 | The time is early from current time                                                    | 定时发送时间早于当前时间。          | 请检查发送时间。                                                                                                                             |
| MSGSMS.0087 | The time interval is beyond 31 days!                                                   | 时间间隔超过31天。             | 请检查时间间隔。                                                                                                                             |
| MSGSMS.0103 | Failed to query tenant information.                                                    | 查询租户信息失败。              | 请联系华为工程师分析解决。                                                                                                                        |
| MSGSMS.0104 | Service is not allowed in this country or region.                                      | 当前国家/地区不支持此服务。         | 请检查国家/地区是否正确。                                                                                                                        |
| MSGSMS.0130 | Signature status should be to be activated.                                            | 只有待激活的签名才能申请激活。        | 请检查签名状态是否为待激活。                                                                                                                       |
| MSGSMS.0132 | File name is empty, too long or have space.                                            | 文件名为空、文件名过长或包含空格。      | 请检查文件名格式是否符合要求。                                                                                                                      |
| MSGSMS.0133 | File name illegal character.                                                           | 文件名包含非法字符。             | 请检查文件名是否包含以下非法字符：#'$%\&\*/\|\<\>\&{}\[\];?!\^                                                                                        |
| MSGSMS.0134 | Template not allow to update, template flow status must be Reject or Pending.          | 模板无法更新，状态必须为审核不通过或待提交。 | 请联系华为运营人员拒绝模板申请或主动撤回模板申请后重试。                                                                                                         |
| MSGSMS.0144 | URL Path is empty.                                                                     | URL为空。                 | 请检查URL是否为空。                                                                                                                          |
| MSGSMS.0145 | URL Path is large than maximum size.                                                   | URL长度过大。               | 请检查URL长度是否超过3000个字节。                                                                                                                 |
| MSGSMS.0151 | Template variable type is not supported.                                               | 模板变量类型不支持。             | 请检查模板变量类型。                                                                                                                           |
| MSGSMS.0162 | connection timeout exception.                                                          | 连接超时异常。                | 请联系华为工程师分析解决。                                                                                                                        |
| MSGSMS.0186 | Template not allow to revoke, template flow status must be Reviewing or SignReviewing. | 撤回模板失败                 | 请确认模板状态是否为待审核或待提交。                                                                                                                   |
| MSGSMS.0187 | Active template only allow to update template name.                                    | 已激活模板只允许更新模板名称         | 请检查是否更新了其它模板参数。                                                                                                                      |
| MSGSMS.0188 | Failed to update template.                                                             | 更新模板失败                 | 请联系华为工程师分析解决。                                                                                                                        |
   
