# `MqttX.Packet.ReasonCodes`
[🔗](https://github.com/cignosystems/mqttx/blob/v0.11.2/lib/mqttx/packet/reason_codes.ex#L1)

Named constants for MQTT reason codes, so protocol code reads by name
instead of hex literal.

Covers the MQTT 5.0 reason codes (§2.4) and MQTT 3.1.1 CONNACK return
codes (§3.2.2.3) this library sends. The full v5 table lives in the spec;
add codes here as they gain call sites rather than mirroring the whole
table (an earlier complete-table module ended up as dead code).

# `bad_authentication_method`

# `continue_authentication`

# `disconnect_with_will_message`

# `is_error_code`
*macro* 

§2.4: codes 0x80 and above indicate failure.

# `message_rate_too_high`

# `packet_identifier_not_found`

# `packet_too_large`

# `protocol_error`

# `quota_exceeded`

# `receive_maximum_exceeded`

# `session_taken_over`

# `success`

# `topic_alias_invalid`

# `unspecified_error`

# `unsupported_protocol_version`

# `v3_identifier_rejected`

# `v3_unacceptable_protocol_version`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
