Remove the constants from the error codes returned by the TCP/UDP/Monitor API and create a set of reference constants.