3.1.4.1 Error Handling

When a higher-layer application protocol submits a message to be sent, the implementation MAY<3> check whether the message conforms to the syntax specified in section 2.2, and if it does not, return an error and abort further processing. Otherwise, the implementation MUST send the message to the server.