> For the complete documentation index, see [llms.txt](https://docs.iotmp.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iotmp.io/iotmp/messages/error.md).

# Error

An [Error ](/iotmp/messages/error.md)Message can be sent both by clients or servers to indicate an error on a previous request identified with its [Stream Identifier](/iotmp/definitions.md#stream-identifier).

## Header

<table><thead><tr><th width="180.33333333333331">Field</th><th width="119">Value</th><th>Description</th></tr></thead><tbody><tr><td><strong>Message Type</strong></td><td>0x02</td><td>Error</td></tr><tr><td><strong>Message Size</strong></td><td><a href="/pages/-MD0eHPhqzDOIPgDvpwS#varint">varint</a></td><td>Remaining Message Length</td></tr></tbody></table>

## Body

<table><thead><tr><th width="156">Name</th><th width="120">Field</th><th width="92">Type<select><option value="b4a3a828357a4352a2e594e477411a79" label="varint" color="blue"></option><option value="a5439d31a66a452599cbeb1bf6534973" label="any" color="blue"></option></select></th><th width="125" data-type="checkbox">Mandatory</th><th>Description</th></tr></thead><tbody><tr><td><strong>Stream Id</strong></td><td>0x01</td><td><span data-option="b4a3a828357a4352a2e594e477411a79">varint</span></td><td>true</td><td><a href="/pages/-MD0eHPhqzDOIPgDvpwS#stream-identifier">Stream identifier</a> of the source request.</td></tr><tr><td><strong>Parameters</strong></td><td>0x02</td><td><span data-option="a5439d31a66a452599cbeb1bf6534973">any</span></td><td>false</td><td>Optional parameters associated to the response, like a response code, payload description, etc.</td></tr><tr><td><strong>Payload</strong></td><td>0x03</td><td><span data-option="a5439d31a66a452599cbeb1bf6534973">any</span></td><td>false</td><td>Optional payload associated to the response</td></tr></tbody></table>
