3.2.5 Message Processing Events and Sequencing Rules

Malformed and out-of-sequence messages are processed as specified in section 3.1.5. In addition, when encountering a malformed or out-of-sequence request message on the Device channel, the client MUST send an Error Response (section 2.2.3.2) message to the server with an appropriate ErrorCode value. In the case of a malformed message the ErrorCode SHOULD be set to InvalidMessage (2).