The table below provides a reference of all  instances that
        asynchronous operations may complete with, along with the reasons for their
        occurrence.
      async_mqtt5::error_code
Table 1.3. Error codes
| 
                 Error code  | 
                 Cause  | 
|---|---|
| 
                 
                    | 
                 The operation completed successfully.  | 
| 
                 
                    | 
                 
                  The operation has been cancelled. The cancellation of the operation
                  can be triggered by invoking either   | 
| 
                 
                    | 
                 
                  An non-recoverable error occurred during the attempt by the   | 
| 
                 
                    | 
                 The Client has attempted to send a packet that does not conform to the specification. This issue can arise from improperly formed UTF-8 encoded strings. Additionally, this error can be caused by providing out-of-range values.  | 
| 
                 
                    | 
                 The Client has attempted to send a packet larger than the Maximum Packet Size the Server is willing to process.  | 
| 
                 
                    | 
                 
                  The Client has established a successful connection with a Server,
                  but either the session does not exist or has expired. In cases
                  where the Client had previously set up subscriptions to Topics,
                  these subscriptions are also expired. Therefore, the Client should
                  re-subscribe. This error code is exclusive to completion handlers
                  associated with   | 
| 
                 
                    | 
                 This error code signifies that the Client was unable to allocate a Packet Identifier for the current operation due to the exhaustion of the available identifiers. This occurs when there are 65535 outgoing Packets awaiting their responses.  | 
| 
                 
                    | 
                 
                  The Client has attempted to perform an action (publish, subscribe
                  or unsubscribe) on an invalid Topic. See   | 
| 
                 
                    | 
                 
                  The Client has attempted to publish an Application Message with
                    | 
| 
                 
                    | 
                 
                  The Client has attempted to publish an Application Message with
                  the   | 
| 
                 
                    | 
                 
                  The Client has attempted to publish an Application Message with
                  the Topic Alias exceeding the Server's supported Topic Alias Maximum.
                  Additionally, this error code will arise in instances when the
                  Server does NOT support Topic Aliases, and the Client has attempted
                  to use them. See   | 
| 
                 
                    | 
                 
                  The Client has attempted to subscribe to multiple Topics using
                  Wildcard Character (  | 
| 
                 
                    | 
                 
                  The Client has attempted to associate a subscription with a Subscription
                  Identifier. However, the Server either does not support Subscription
                  Identifiers or the Subscription Identifier provided is out of range
                  (the Subscription Identifier can have a value of 1 to 268,435,455).
                  This error code is exclusive to completion handlers associated
                  with   | 
| 
                 
                    | 
                 
                  The Client has attempted to establish a Shared Subscription. However,
                  the Server does not support Shared Subscriptions. This error code
                  is exclusive to completion handlers associated with   |