Create ErrorCodes.h

The typedef of ERR_MSG is defined and implemented here for inclusion in all interfaces