refactoring for ErrorCodes and syslog messages - see #9
Need now a good test phase to be sure ok.