Reason Code
MQTT 5.0 reason codes per §2.4.
Reason codes indicate the result of an operation. They appear in CONNACK, PUBACK, PUBREC, PUBREL, PUBCOMP, SUBACK, UNSUBACK, DISCONNECT, and AUTH packets.
Success codes are in the range 0x00..0x1F. Error codes are 0x80 and above. The SUCCESS code (0x00) is overloaded — it also represents "Normal Disconnection" in DISCONNECT and "Granted QoS 0" in SUBACK.
See also
Entries
The subscription is accepted with QoS 1 as the maximum QoS level.
The subscription is accepted with QoS 2 as the maximum QoS level.
The client wishes to disconnect but requires the server to publish its Will Message.
The message is accepted but there are no matching subscribers.
No matching subscription existed for the topic filter in the UNSUBSCRIBE.
Continue the authentication with another step.
Initiate a re-authentication.
The server or client does not wish to reveal the reason for the failure.
Data within the packet could not be correctly parsed.
Data in the packet does not conform to this specification.
The packet is valid but not accepted by the implementation.
The server does not support the requested MQTT protocol version.
The Client Identifier is not valid.
The server does not accept the user name or password.
The client is not authorized to perform this operation.
The MQTT server is not available.
The server is busy; try again later.
The server is shutting down.
The authentication method is not supported or does not match the current method.
The connection is closed because no packet has been received within 1.5 times the keep alive.
Another connection using the same Client Identifier has connected.
The topic filter is correctly formed but not accepted by the server.
The topic name is correctly formed but not accepted by the server or client.
The specified packet identifier is already in use.
The packet identifier is not known (e.g., not part of an active QoS 2 flow).
The client or server has received more than Receive Maximum concurrent QoS 1/2 messages.
The topic alias is not valid.
The packet exceeded the maximum permissible size.
The received data rate is too high.
An implementation or administrative imposed limit has been exceeded.
The connection is closed due to an administrative action.
The payload format does not match the specified Payload Format Indicator.
The server does not support retained messages.
The server does not support the requested QoS level.
The client should temporarily use another server.
The client should permanently use another server.
The server does not support shared subscriptions.
The connection rate limit has been exceeded.
The maximum connection time authorized for this connection has been exceeded.
The server does not support subscription identifiers.
The server does not support wildcard subscriptions.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.