HiveMQ MQTT 5 Client Disconnect Reason Codes

This table summarizes disconnection scenarios, and the resultant reason codes when using a MQTT 5 client

Method

Reason Code

Reason String

Method

Reason Code

Reason String

onAuthenticationFailedDisconnect

NOT_AUTHORIZED

Unknown authentication key or wrong authentication secret

onClientInitiatedDisconnect

NORMAL_DISCONNECTION

Empty

onServerInitiatedDisconnect

ADMINISTRATIVE_ACTION

Empty

onConnectionLost

Empty

Empty