MQTT Error/Reason Codes

Topic: CM201
Error List: MQTT Ver3.1.1
Decimal Hex Description
0 0 No error occurred.
1 0x01 The broker does not accept a connection using the specified protocol version.
2 0x02 The client ID is invalid. This might be related to its length.
3 0x03 The network connection has been established, but the service is unavailable on the broker side.
4 0x04 The user name or password specified is invalid.
5 0x05 The client is not authorized to connect.
256 0x100 The underlying transport caused an error. For example, the connection might have been interrupted unexpectedly.
257 0x101 The client encountered a protocol violation, and therefore closed the connection.
258 0x102 An unknown error occurred.
259 0x103 The error is related to MQTT protocol level 5. A reason code might provide more details.
Reason Code: MQTT Ver5.0
Decimal Hex Description
0 The specified action has succeeded.
0 A subscription with QoS level 0 has been created.
1 0x01 A subscription with QoS level 1 has been created.
2 0x02 A subscription with QoS level 2 has been created.
16 0x10 The Message has been accepted by the server, but there are no subscribers to receive this message. A broker may send this reason code instead of Success.
17 0x11 No matching topic filter is being used by the client.
24 0x18 Continue the authentication with another step.
25 0x19 Initiate a re-authentication.
128 0x80 An unspecified error occurred.
129 0x81 The packet sent to the server is invalid.
130 0x82 A protocol error has occurred. In most cases, this will cause the server to disconnect the client.
131 0x83 The packet is valid, but the recipient rejects it.
132 0x84 The requested protocol version is not supported by the server.
133 0x85 The client ID is invalid.
134 0x86 The user name or password specified is invalid.
135 0x87 The client is not authorized for the specified action.
136 0x88 The server to connect to is not available.
137 0x89 The server to connect to is not available. The client is asked to try at a later time.
138 0x8A The client has been banned from the server.
140 0x8C The authentication method specified is invalid.
143 0x8F The topic filter specified is invalid.
144 0x90 The topic name specified is invalid.
145 0x91 The Message ID used in the previous packet is already in use.
146 0x92 The Message ID used in the previous packet has not been found.
149 0x95 The packet received is too large.
151 0x97 An administratively imposed limit has been exceeded.
153 0x99 The payload format is invalid. See also
154 0x9A The server does not support retained messages.
155 0x9B The QoS level requested is not supported.
156 0x9C The server the client tries to connect to is not available.
157 0x9D The server the client tries to connect to has moved to a new address.
158 0x9E Shared subscriptions are not supported.
159 0x9F The connection rate limit has been exceeded.
161 0xA1 Subscription IDs are not supported.
162 0xA2 Subscriptions using wild cards are not supported by the server.

Back to MQTT Setup