Use a switch case control flow at incoming OCPP messages handling error