MQTT reason-code explorer
MQTT reason-code explorer
Select MQTT 5.0 and compare Success (0), Server Busy (137) and Quota Exceeded (151). Watch the recommended action change: a refusal needs a reason-specific response. Then compare MQTT 3.1.1 values 0–5.
Illustrative Python handler (adapt for the packet and client API):
Selected codes for this version
This is a selected-code guide. Quota Exceeded does not identify a particular resource, and Packet Too Large (149 / 0x95) differs from Connection Rate Exceeded (159 / 0x9F).