OPC UA message: unexpected or invalid message type leads to incorrrect error message reason or no response
Description
After investigations on issue #1442 (closed), in case of unexpected message type (response message for a server / request message for a client) the secure channel is closed with an ERR message but the reason provided is incorrect. Moreover when the message type is invalid/unknown the message is only ignored and the secure channel remains open.
Analysis
When closing the secure channel on unexpected/invalid message reception (server side), the ERR message reason should be adapted to reflect the actual issue. Moreover, an invalid/unknown message type should also lead to close the secure channel.