
# 消息集成API错误码
更多服务错误码请参见[API错误中心](https://apierrorcenter.developer.huaweicloud.com/apierrorcenter)。
| 状态码 | 错误码          | 错误信息                                                                                                                                 | 描述                                  | 处理措施                    |
|:---|:---|:---|:---|:---|
| 400 | DMS.00400866 | Public advertised info cannot be changed for an MQS instance that is not bound to an EIP.                                            | 未绑定EIP的MQS实例不支持修改公网发布信息。            | 请先开启实例的公网访问功能。          |
| 400 | MQS.00400002 | Invalid project ID format.                                                                                                           | Project-ID的格式无效。                    | 请检查Project-ID的格式。       |
| 400 | MQS.00400004 | Empty request body.                                                                                                                  | 请求消息体为空。                            | 请查看请求信息体。               |
| 400 | MQS.00400005 | The message body contains invalid characters or is not in JSON format.                                                               | 请求消息体不是JSON格式或字段非法。                 | 请检查消息体格式。               |
| 400 | MQS.00400008 | The selected engine version is not supported.                                                                                        | 不支持的版本。                             | 请检查版本。                  |
| 400 | MQS.00400009 | Invalid product ID in the request.                                                                                                   | 请求参数product_id非法。                   | 请检查参数product_id。        |
| 400 | MQS.00400010 | Invalid instance name. The name must be 4 to 64 characters long. Only letters, digits, underscores (_), and hyphens (-) are allowed. | 实例名称不合法，只能包含字母，数字，下划线或者中划线，长度为4-64。 | 请检查实例名称。                |
| 400 | MQS.00400011 | The instance description can contain a maximum of 1024 characters.                                                                   | 实例描述长度必须为0-1024。                    | 请查看实例描述。                |
| 400 | MQS.00400012 | Invalid password format.                                                                                                             | 密码格式不符合要求。                          | 请确认密码是否符合要求。            |
| 400 | MQS.00400014 | Invalid security_group_id in the request.                                                                                            | 请求参数security_group_id不合法。           | 请检查参数security_group_id。 |
| 400 | MQS.00400026 | This operation is not allowed when the MQS instance is in the current state.                                                         | 当前的实例状态不支持该操作。                      | 请检查实例状态。                |
| 400 | MQS.00400037 | The instanceParams parameter in the request contains invalid characters or is not in JSON format.                                    | 请求参数instanceParams非法，不是JSON格式或字段非法。 | 请检查请求参数。                |
| 400 | MQS.00400038 | The periodNum parameter in the request must be an integer.                                                                           | 请求参数periodNum非法，必须为整数。              | 请检查参数periodNum。         |
| 400 | MQS.00400042 | The AZ does not exist.                                                                                                               | 可用区不存在。                             | 请检查可用区。                 |
| 400 | MQS.00400060 | This instance name already exists.                                                                                                   | 实例名称已经存在。                           | 请检查实例名称。                |
| 400 | MQS.00400061 | Invalid instance ID format.                                                                                                          | 实例ID的格式无效。                          | 请检查实例ID。                |
| 400 | MQS.00400062 | Invalid request parameter.                                                                                                           | 请求参数无效                              | 请检查请求参数。                |
| 400 | MQS.00400064 | The action parameter in the request must be delete or restart.                                                                       | 请求参数action非法，只能为delete或restart。     | 请检查参数action。            |
| 400 | MQS.00400065 | The instances parameter in the request is invalid.                                                                                   | 请求参数instances不合法。                   | 请检查参数instances。         |
| 400 | MQS.00400085 | The message body contains invalid characters or is not in JSON format, The error key is \<key\>.                                     | 请求消息体不是JSON格式或字段非法，有明确的错误字段。        | 请检查错误字段。                |
| 400 | MQS.00400099 | MQS instances in the Creating, Starting or Restarting state cannot be deleted.                                                       | 实例状态为创建中、启动中、停止中、重启中时不允许执行删除操作。     | 请检查实例状态。                |
| 400 | MQS.00400100 | The number of instance IDs in an instances array cannot exceed 50.                                                                   | instances数组最多只能包含50个实例ID。           | 请检查实例数量。                |
| 400 | MQS.00400101 | Invalid topic name.                                                                                                                  | Topic名称不合法。                         | 请检查Topic名称。             |
| 400 | MQS.00400102 | Invalid partition.                                                                                                                   | Partition取值错误。                      | 请检查Topic分区数。            |
| 400 | MQS.00400103 | Invalid replication.                                                                                                                 | Replication取值错误。                    | 请检查Topic副本数。            |
| 400 | MQS.00400105 | Invalid retention time.                                                                                                              | 老化时间取值错误。                           | 请检查Topic老化时间。           |
| 400 | MQS.00400106 | Invalid maintenance time.                                                                                                            | 维护时间窗参数非法。                          | 请检查维护时间窗参数。             |
| 400 | MQS.00400800 | Invalid \<key\> in the request.                                                                                                      | 请求参数中错误的参数\<key\>。                  | 请检查实例。                  |
| 400 | MQS.00400861 | The number of replicas in the topic to be created is greater than the number of available brokers.                                   | 创建Topic的副本数大于当前可用的Broker数。          | 请检查Topic的副本数。           |
| 400 | MQS.00500963 | Failed to delete assets.                                                                                                             | 删除资产失败。                             | 请联系技术支持升级MQS实例版本。       |
| 400 | MQS.4006     | Name is invalid.                                                                                                                     | 错误的用户名。                             | 请检查用户名。                 |
| 401 | MQS.00401001 | Invalid token.                                                                                                                       | 无效的token。                           | 请重新获取token。             |
| 403 | MQS.00403002 | This tenant has read permission only and cannot perform this operation.                                                              | 租户只有只读权限，无法操作MQS。                   | 请检查租户权限。                |
| 403 | MQS.00403003 | This role does not have the permission to perform this operation.                                                                    | 角色没有操作权限，无法执行此操作。                   | 请检查角色权限。                |
| 403 | MQS.4007     | Password is invalid.                                                                                                                 | 错误的密码。                              | 请检查密码。                  |
| 404 | MQS.00404001 | The requested URL does not exist.                                                                                                    | 请求的URL不存在。                          | 请检查URL。                 |
| 404 | MQS.00404022 | This instance does not exist.                                                                                                        | 实例不存在。                              | 请检查是否存在该实例。             |
| 405 | MQS.00405001 | This request method is not allowed.                                                                                                  | 请求中指定的方法不被允许。                       | 请检查请求方法。                |
| 500 | MQS.00500000 | Internal service error.                                                                                                              | 内部服务错误。                             | 请联系技术支持。                |
| 500 | MQS.00500006 | Internal service error.                                                                                                              | 内部服务错误。                             | 请联系技术支持。                |
| 500 | MQS.00500017 | Internal service error.                                                                                                              | 内部服务错误。                             | 请联系技术支持。                |
| 500 | MQS.00500020 | Internal service error.                                                                                                              | 内部服务错误。                             | 请联系技术支持。                |
| 500 | MQS.00500024 | Internal service error.                                                                                                              | 内部服务错误。                             | 请联系技术支持。                |
| 500 | MQS.00500025 | Internal service error.                                                                                                              | 内部服务错误。                             | 请联系技术支持。                |
| 500 | MQS.00500031 | Internal service error.                                                                                                              | 内部服务错误。                             | 请联系技术支持。                |
| 500 | MQS.00500041 | Internal service error.                                                                                                              | 内部服务错误。                             | 请联系技术支持。                |
| 500 | MQS.00500044 | Internal service error.                                                                                                              | 内部服务错误。                             | 请联系技术支持。                |
| 500 | MQS.00500053 | Internal service error.                                                                                                              | 未找到实例节点。                            | 请联系技术支持。                |
| 500 | MQS.00500054 | Internal service error.                                                                                                              | 生成密码错误。                             | 请联系技术支持。                |
| 500 | MQS.00500070 | Internal service error.                                                                                                              | 实例配置失败。                             | 请联系技术支持。                |
| 500 | MQS.00500802 | Internal service error.                                                                                                              | 内部服务错误。                             | 请联系技术支持。                |
   
