MQTT OpenAPI状态码调整
公告说明
为了更有效地管理OpenAPI,我们对云消息队列 MQTT 版的OpenAPI的HTTP状态码进行调整。
变更内容
本次变更只针对OpenAPI的HTTP状态码进行统一调整,不涉及接口的返回结果。
接口的HTTP状态码调整如下:
HTTP status code
(变更前)
HTTP status code
(变更后)
错误码
错误信息
描述
500
417
InternalError
An error occurred while processing your request. Try again later.
MQTT后端服务异常,请重试。
500
403
SystemOverFlow
An error occurred while processing your request. Please try again.
系统限流,请重试。
500
417
CreateGroupIdError
Failed to create GroupId. Try again later.
创建Group ID请求执行失败,请稍后重试。
500
417
DeleteGroupIdError
Failed to delete GroupId. Try again later.
删除Group ID请求执行失败,请稍后重试。
500
417
SendMessageFailed
A storage exception occurred while sending the message. Please try again.
由于后端存储异常,消息发送失败,请重试。
500
400
RegisterCodeError
Register code error in verification certificate.
注册码错误。
500
401
RegisterCodeUsed
Register code has been used.
注册码已经被使用过。
500
401
GetCaNumError
Failed to get ca num. Try again later.
获取CA数量错误。
500
401
CaNumExceed
CA certificate num exceed.
CA数量超出限制。
500
401
CertificateContentError
Certificate content error, please check ca/verification certificate content. BasicConstraints extension should be set to true in CA certificate.
用户CA证书或者验证证书内容错误。
500
401
SnNotUnique
Sn is not unique in global.
SN 不是全局唯一的。
500
400
MqttInstanceNotFound
Specified instance is not found.
实例不存在。
500
400
FindCaBySnError
Failed to find the CA by the SN. Please check sn is valid.
SN不存在。
500
403
MqttOwnerCheckError
Failed to validate the instance permission.
实例权限校验失败。
500
400
ParameterFieldCheckFailed
Failed to validate the parameters. The parameters may be missing or invalid.
参数校验失败,可能缺失或者传入值非法。
500
400
FindDeviceBySnError
Failed to find the device certificate by the SN. Please check sn is valid.
获取设备证书失败。
涉及到的接口如下:
变更时间
2025年07月06日至2025年08月06日期间,对现有OpenAPI的HTTP状态码按地域分批完成调整。
变更影响
涉及对接口HTTP状态码有强依赖的业务,请尽快进行修改。
对于此次调整可能带来的不便,敬请谅解。如您有任何问题,请联系云消息队列 MQTT 版技术支持,钉钉群号:116015007918。