
# 错误码
当您调用API时，如果遇到"APIGW"开头的错误码，请参见[API网关错误码](https://support.huaweicloud.com/devg-apisign/api-sign-errorcode.html)进行处理。
| 状态码 | 错误码       | 错误信息                                                                                                     | 描述                                            | 处理措施                                  |
|:---|:---|:---|:---|:---|
| 400 | LTS.0001  | Invalid log transfer type.                                                                               | 无效的projectId。项目Id为空或者与token中的projectId不一致。    | 请检查projectId是否有效且不为空。                 |
| 400 | LTS.0002  | The parameter is empty                                                                                   | 参数为空。参数不能为空。                                  | 请检查参数是否为空。                            |
| 400 | LTS.0003  | Invalid token                                                                                            | 无效的token。                                     | 请重新获取token。                           |
| 400 | LTS.0007  | The request body format must be json                                                                     | 传入的请求body体不合法。传入的请求body体不是JSON。               | 请检查请求体是否为有效的JSON格式。                   |
| 400 | LTS.0009  | Failed to validate the request body                                                                      | 参数校验失败。                                       | 请检查请求参数是否有效。                          |
| 400 | LTS.0010  | The system encountered an internal error                                                                 | 内部服务错误。                                       | 请联系技术支持或检查系统日志以获取更多信息。                |
| 400 | LTS.0011  | Invalid projectId                                                                                        | 非法的projectId。项目ID为空或者与token中的projectId不一致。    | 请检查projectId是否为空且与token中的projectId一致。 |
| 400 | LTS.0014  | Failed to process current operation to ES                                                                | 操作数据库异常。连接数据库异常。                              | 请检查数据库连接并确保数据库正常运行。                   |
| 400 | LTS.00141 | kafka operation authorize failed.                                                                        | 查询自定义Kafka失败。                                 | 请检查自定义Kafka配置及连通性。                    |
| 400 | LTS.0018  | Current user does not have the permission to operate obs, obs error code: \[%s\].                        | 当前用户无权限进行此请求。当前用户没有OBS桶的操作权限。                 | 请检查用户权限以确保其具有对OBS桶的操作权限。              |
| 400 | LTS.0019  | Current bucket is encrypted                                                                              | 创建转储失败。当前OBS桶已加密，请解密后重试。                      | 请禁用OBS桶加密后重试转储创建。                     |
| 400 | LTS.0020  | Current bucket is encrypted.                                                                             | 修改转储失败。当前OBS桶已加密，请解密后重试。                      | 请禁用OBS桶加密后重试转储修改。                     |
| 400 | LTS.0024  | Incorrect enterprise project name.                                                                       | 企业项目名称错误。                                     | 请填写正确的企业项目名称。                         |
| 400 | LTS.0101  | Failed to create log group, the log group name has been existed                                          | 创建日志组失败。提供的日志组名称已存在。                          | 请检查日志组名称是否唯一。                         |
| 400 | LTS.0102  | Failed to create log group                                                                               | 创建日志组失败。连接数据库异常。                              | 请检查数据库连接。                             |
| 400 | LTS.0103  | Failed to delete log group                                                                               | 删除日志组失败。连接数据库异常。                              | 请检查数据库连接。                             |
| 400 | LTS.0104  | Failed to create log group, the number of log groups exceeds the quota                                   | 创建日志组失败。日志组数量已达上限。                            | 请增加配额或减少日志组数量。                        |
| 400 | LTS.0105  | The log group is associated by transfer                                                                  | 日志组绑定了转储。日志组中的部分日志流绑定了转储。                     | 请检查与日志组关联的传输策略。                       |
| 400 | LTS.0106  | The number of TTL days is out of range.                                                                  | TTL天数超出范围。                                    | 请将TTL天数设置正确。                          |
| 400 | LTS.0107  | Current user does not have the permission to operate this group.                                         | 更新日志组失败。                                      | 连接数据库异常，检查数据库实例状态。                    |
| 400 | LTS.0108  | The log group is associated by agent conf                                                                | 删除日志组失败。日志组中包含已创建主机接入的日志流。                    | 请从日志组中移除日志流或删除主机访问。                   |
| 400 | LTS.0201  | The log group does not existed.                                                                          | 日志组不存在。                                       | 请验证日志组名称或创建新的日志组。                     |
| 400 | LTS.0202  | Failed to create log stream.                                                                             | 创建日志流失败。连接数据库异常。                              | 请检查数据库连接。                             |
| 400 | LTS.0205  | The log stream name has been existed                                                                     | 日志流名称已存在。提供的日志流名称已存在。                         | 请使用不同的日志流名称。                          |
| 400 | LTS.0206  | Failed to create log stream, the number of log streams exceeds the quota                                 | 日志流数量已达上限。日志流数量已达单个日志组的上限。                    | 请增加配额或减少日志流数量。                        |
| 400 | LTS.0207  | The log stream is associated by transfer.                                                                | 日志流绑定了转储。无法删除日志流，因为日志流绑定了转储。                  | 请检查与日志流关联的传输策略。                       |
| 400 | LTS.0208  | The log stream does not existed.                                                                         | 日志流不存在。                                       | 请验证日志流名称或创建新的日志流。                     |
| 400 | LTS.0209  | The log stream is associated by agent conf.                                                              | 删除日志流失败。该日志流已配置主机接入。                          | 请移除主机访问配置或删除日志流。                      |
| 400 | LTS.0402  | Failed to delete transfer                                                                                | 删除转储策略失败。连接数据库异常。                             | 请检查数据库连接。                             |
| 400 | LTS.0403  | The topic is repeated with other transfer                                                                | 创建转储策略失败，已关联转储。创建转储策略失败，因为该日志流已经绑定其他转储策略。     | 请检查现有的传输策略或使用不同的日志流。                  |
| 400 | LTS.0405  | The log transfer does not existed                                                                        | 该转储策略不存在。删除转储策略失败，因为该转储策略不存在。                 | 请验证传输策略名称或创建新的传输策略。                   |
| 400 | LTS.0412  | Failed to create transfer, prefix name is invalid.                                                       | 创建转储策略失败。创建转储策略失败，日志文件前缀名称不合法。                | 请使用有效的日志文件前缀名称。                       |
| 400 | LTS.0413  | Failed to create transfer, directory prefix name is invalid                                              | 创建转储策略失败。创建转储策略失败，提供的日志文件夹前缀名称不合法。            | 请使用有效的日志文件夹前缀名称。                      |
| 400 | LTS.0500  | The system encountered an internal error.                                                                | 内部服务错误。                                       | 请联系技术支持以获取帮助。                         |
| 400 | LTS.0503  | Failed to create agent conf.                                                                             | 创建采集路径失败。                                     | 请检查采集路径配置或系统状态。                       |
| 400 | LTS.0505  | Failed to delete agent conf.                                                                             | 删除采集路径失败。                                     | 请验证采集路径是否存在或系统状态。                     |
| 400 | LTS.0506  | Failed to update agent conf.                                                                             | 更新采集路径失败。                                     | 请检查采集路径配置或系统状态。                       |
| 400 | LTS.0511  | Call icmgr exception.                                                                                    | 对采集路径的操作失败。ICMgr服务出现异常。                       | 请验证采集路径配置或系统状态。                       |
| 400 | LTS.0601  | params validator error.                                                                                  | 参数校验失败。                                       | 请验证并修正输入参数。                           |
| 400 | LTS.0603  | group or stream not exist                                                                                | 日志组或者日志流不存在。                                  | 请检查日志组或日志流是否存在。                       |
| 400 | LTS.0604  | stream transfer exist                                                                                    | 创建转储失败，因为该日志流已经配置转储。                          | 请验证日志流是否已配置传输。                        |
| 400 | LTS.0605  | save transfer exist.                                                                                     | 保存DIS转储配置失败。连接数据库异常。                          | 请检查DIS传输配置及数据库连接。                     |
| 400 | LTS.0607  | update transfer not exist.                                                                               | 更新DIS转储配置失败。更新DIS转储配置失败，因为该转储配置不存在。           | 请验证DIS传输配置是否存在。                       |
| 400 | LTS.0608  | dis stream not exist.                                                                                    | 创建或更新DIS转储失败。创建或更新DIS转储失败，因为该DIS通道不存在。        | 请检查DIS通道是否存在。                         |
| 400 | LTS.0610  | dis stream auth failed.                                                                                  | 创建或更新DIS转储失败。创建或更新DIS转储失败，因为该用户没有对这个DIS通道的权限。 | 请验证用户对DIS通道的权限。                       |
| 400 | LTS.0611  | delete transfer id failed.                                                                               | 删除DIS转储失败。连接数据库异常。                            | 请检查DIS传输配置及数据库连接。                     |
| 400 | LTS.0612  | %s fieldType is error                                                                                    | 字段类型错误。                                       | 请调整结构化字段类型以匹配数据。                      |
| 400 | LTS.0711  | Log filter params validator error.                                                                       | 配置参数错误，请修改后重试。                                | 请调整参数设置后重试。                           |
| 400 | LTS.0721  | Failed to delete lts ticket.                                                                             | 操作ES失败                                        | 请检查Elasticsearch服务状态及配置。              |
| 400 | LTS.0722  | Log chart failed to store data in ES.                                                                    | 操作ETCD失败。                                     | 请验证ETCD服务可用性及配置。                      |
| 400 | LTS.0751  | custom template params validator error.                                                                  | 参数校验失败。                                       | 请验证并修正输入参数。                           |
| 400 | LTS.0752  | The number of custom templates exceeds the maximum.                                                      | 自定义模板数量已达上限（50个）。                             | 请删除未使用的模板或增加上限。                       |
| 400 | LTS.0753  | The number of fields in custom template exceeds the limit.                                               | 自定义模板字段数量超过限制（1-200个）                         | 请调整模板以满足字段数量要求。                       |
| 400 | LTS.0754  | Custom template name already exist or in system templateName exist.                                      | 自定义模板名称已存在。                                   | 请使用唯一的自定义模板名称。                        |
| 400 | LTS.0755  | Field name or userDefined name repeat.                                                                   | 字段名称重复。                                       | 请确保模板内所有字段名唯一。                        |
| 400 | LTS.0756  | FieldNames or userDefinedNames have internal fields.                                                     | 字段名称/别名与内置字段重复。                               | 请重命名字段以避免与内置字段冲突。                     |
| 400 | LTS.0757  | Log custom template operation failed.                                                                    | 操作失败。                                         | 请检查系统状态后重试操作。                         |
| 400 | LTS.0901  | The filter name has been existed                                                                         | 过滤器名称已存在。提供的过滤器名称已存在。                         | 请使用唯一的过滤器名称。                          |
| 400 | LTS.0902  | Failed to create log filter.                                                                             | 创建过滤器失败。连接数据库异常。                              | 请检查日志过滤器配置及数据库连接。                     |
| 400 | LTS.0903  | Failed to delete log filter.                                                                             | 删除过滤器失败。连接数据库异常。                              | 请检查过滤器配置及数据库连接。                       |
| 400 | LTS.0904  | Failed to update log filter.                                                                             | 更新过滤器失败。连接数据库异常。                              | 请检查过滤器配置及数据库连接。                       |
| 400 | LTS.0906  | The filter does not existed.                                                                             | 删除或更新过滤器失败。该过滤器不存在。                           | 请验证过滤器是否存在。                           |
| 400 | LTS.0908  | Failed to create statisticsRule report query.                                                            | 创建统计规则失败。连接数据库异常。                             | 请检查统计规则配置及数据库连接。                      |
| 400 | LTS.0909  | Failed to delete statisticsRule report query.                                                            | 删除统计规则失败。连接数据库异常。                             | 请检查统计规则配置及数据库连接。                      |
| 400 | LTS.0910  | Failed to update statisticsRule report query.                                                            | 更新统计规则失败。连接数据库异常。                             | 请检查统计规则配置及数据库连接。                      |
| 400 | LTS.0911  | The filter is exceed.                                                                                    | 过滤器的个数已达上限。单个日志流最多只能有5个过滤器。                   | 请减少过滤器数量或创建新的日志流。                     |
| 400 | LTS.0912  | The metric name has been existed.                                                                        | 指标名称已存在。提供的指标名称已存在。                           | 请使用唯一的指标名称。                           |
| 400 | LTS.1602  | Failed to create search criteria, the number of search criteria exceeds the quota                        | 创建快速查询失败。单个日志流最多只能创建200个快速查询。                 | 请删除现有快速搜索或使用新的日志流。                    |
| 400 | LTS.1603  | The search criteria name already exists                                                                  | 创建快速查询失败。提供的快速查询名称已经存在。                       | 请使用唯一的快速搜索名称。                         |
| 400 | LTS.1604  | Failed to create search criteria record.                                                                 | 创建快速搜索失败。连接数据库异常。                             | 请检查快速搜索配置及数据库连接。                      |
| 400 | LTS.1606  | Search criteria record not existed.                                                                      | 删除或更新快速搜索失败。该快速搜索不存在。                         | 请验证快速搜索是否存在。                          |
| 400 | LTS.1607  | Failed to delete search criteria.                                                                        | 删除快速搜索失败。连接数据库异常。                             | 请检查快速搜索配置及数据库连接。                      |
| 400 | LTS.1702  | Failed to create VPC channel. The system encountered an internal error.                                  | 创建VPC通道失败。                                    | 请检查VPC通道配置或系统状态。                      |
| 400 | LTS.1703  | Failed to obtain kafka instance. The system encountered an internal error.                               | 获取kafka实例失败。                                  | 请检查Kafka实例配置或系统状态。                    |
| 400 | LTS.1704  | Failed to connect to kafka. The provided kafka password is empty.                                        | 连接kafka失败。提供的kafka密码为空。                       | 请提供有效的Kafka密码。                        |
| 400 | LTS.1706  | Unable to send data to kafka. kafka topic does not exist.                                                | 无法向kafka发送数据。kafka的topic不存在。                  | 请创建Kafka主题或验证主题名称。                    |
| 400 | LTS.1707  | Failed to connect to kafka. Kafka status is abnormal.                                                    | 连接kafka失败。kafka状态异常。                          | 请检查Kafka服务状态及配置。                      |
| 400 | LTS.1712  | The length of the field is greater than 128 characters.                                                  | dms实例注册失败。                                    | 请验证DMS实例配置及注册流程。                      |
| 400 | LTS.1719  | kafka user or password wrong.                                                                            | 用户名/密码错误。                                     | 请验证用户名和密码是否正确。                        |
| 400 | LTS.1720  | kafka connection check failed                                                                            | 检测Kafka连接失败。                                  | 请检查Kafka连接参数及服务状态。                    |
| 400 | LTS.1722  | list kafka topic error.                                                                                  | 查询Topic失败。                                    | 请检查Kafka主题是否存在及配置。                    |
| 400 | LTS.1723  | kafka operation authorize failed.                                                                        | Kafka权限校验失败。                                  | 请验证Kafka用户权限及访问策略。                    |
| 400 | LTS.1802  | stream kafka transfer exist                                                                              | 该Topic已配置dms转储，请更换Topic后重试。                   | 请使用其他主题进行DMS转储配置。                     |
| 400 | LTS.1803  | kafka transfer topic exist.                                                                              | 该Topic已配置dms接入，请更换Topic后重试。                   | 请选择未配置DMS访问的新主题。                      |
| 400 | LTS.1821  | access type is label and host group type is windows.                                                     | lts_admin_trust委托创建失败。                        | 请检查IAM委托配置及权限。                        |
| 400 | LTS.1822  | access type is LABEL and labels is null.                                                                 | 获取lts_admin_trust委托失败。                        | 请验证委托是否存在及访问权限。                       |
| 400 | LTS.1823  | access type is LABEL and host list is not null.                                                          | 用户lts_admin_trust委托不存在。                       | 请为用户lts_admin_trust创建所需委托。            |
| 400 | LTS.1824  | access type is IP and labels is not null.                                                                | 用户lts_admin_trust委托期限非永久。                     | 请将委托授权期限调整为永久。                        |
| 400 | LTS.1825  | DMS UserAccess role not exist                                                                            | DMS UserAccess系统策略不存在。                        | 请创建所需的DMS UserAccess系统策略。             |
| 400 | LTS.1826  | access type or gost group type can not update.                                                           | 获取DMS UserAccess委托授权信息失败。                     | 请验证DMS UserAccess委托配置。                |
| 400 | LTS.1827  | Failed to get hostGroup list.                                                                            | 添加DMS UserAccess授权失败。                         | 请检查DMS UserAccess授权参数后重试。             |
| 400 | LTS.2001  | Failed to create alarm rule.                                                                             | 创建告警规则失败。                                     | 请验证告警规则参数后重试创建。                       |
| 400 | LTS.2002  | Failed to delete alarm rule.                                                                             | 删除告警规则失败。                                     | 请检查告警规则是否存在及权限。                       |
| 400 | LTS.2003  | Failed to update alarm rule.                                                                             | 修改告警规则失败。                                     | 请验证告警规则参数后重试修改。                       |
| 400 | LTS.2004  | The size of alarm rule has exceed the limit: 200.                                                        | 您创建的告警规则已达上限，请删除不需要的规则后重试。                    | 请删除未使用的规则以创建新规则。                      |
| 400 | LTS.2005  | Param is_css_sql is null or false, is_css_sql must be true.                                              | 告警规则参数错误，请修改后重试。                              | 请调整告警规则参数后重试。                         |
| 400 | LTS.2006  | Alarm rule name or Alarm rule alias has already exist.                                                   | 规则名称或规则原始名称存在。                                | 请使用唯一的规则名称。                           |
| 400 | LTS.2007  | Alarm rule not exist.                                                                                    | 告警规则不存在。                                      | 请验证告警规则是否存在。                          |
| 400 | LTS.2008  | Find Alarm rule failed.                                                                                  | 获取告警规则失败。                                     | 请检查告警规则配置及权限。                         |
| 400 | LTS.2009  | User must have SMN service authority.                                                                    | 用户没有SMN服务的权限。                                 | 请检查SMN权限或联系管理员。                       |
| 400 | LTS.2010  | Topics cannot be empty.                                                                                  | SMN主题不能为空。                                    | 请选择一个已有的SMN主题。                        |
| 400 | LTS.2011  | Alarm rule invalid query frequency or invalid cron expression.                                           | 统计周期超限或cron表达式错误。                             | 请验证查询频率设置及cron表达式语法。                  |
| 400 | LTS.2012  | The query time range cannot be larger than 1 hour when the query frequency is less than every 5 minutes. | 统计周期小于5分钟时，查询时间不能大于1小时。                       | 请将查询时间范围调整为1小时内（当查询频率低于5分钟时）。         |
| 400 | LTS.2013  | Notification rule get error.                                                                             | 请检查通知规则是否已存在。                                 | 请验证通知规则是否存在于系统中。                      |
| 400 | LTS.2014  | Failed to create notification template.                                                                  | 创建消息模板失败。请检查模板名称是否重复。                         | 请使用唯一的模板名称。                           |
| 400 | LTS.2015  | Failed to delete notification template.                                                                  | 删除失败，当前消息模板已关联通知规则。                           | 请先解除模板与通知规则的关联后再删除。                   |
| 400 | LTS.2024  | The number of alarm rules to be updated is limited.                                                      | 单次批量处理的告警规则数量已达上限，请去掉不需要的规则后重试。               | 请删除未使用的规则以创建新规则。                      |
| 400 | LTS.2819  | Failed to get hostGroup list.                                                                            | 查询主机组列表失败。                                    | 请检查主机组配置及服务状态。                        |
   
