

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# Device Shadow 错误消息
<a name="device-shadow-error-messages"></a>

Device Shadow 服务在尝试更改状态文档失败时向错误主题发布消息（通过 MQTT）。此消息仅将作为对发布到其中一个保留的 `$aws` 主题的请求的响应。如果客户端使用 REST API 来更新文档，则客户端将收到作为响应一部分的 HTTP 错误代码，且不会发送任何 MQTT 错误消息。


****  

| HTTP 错误代码 | 错误消息 | 
| --- | --- | 
| 400（错误请求） |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/iot/latest/developerguide/device-shadow-error-messages.html)  | 
| 401（未授权） |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/iot/latest/developerguide/device-shadow-error-messages.html)  | 
| 403（禁止访问） |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/iot/latest/developerguide/device-shadow-error-messages.html)  | 
| 404（未找到） |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/iot/latest/developerguide/device-shadow-error-messages.html)  | 
| 409（冲突） |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/iot/latest/developerguide/device-shadow-error-messages.html)  | 
| 413（有效载荷过大） |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/iot/latest/developerguide/device-shadow-error-messages.html)  | 
| 415（媒体类型不受支持） |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/iot/latest/developerguide/device-shadow-error-messages.html)  | 
| 429（请求过多） |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/iot/latest/developerguide/device-shadow-error-messages.html)  | 
| 500（内部服务器错误） |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/iot/latest/developerguide/device-shadow-error-messages.html)  | 