Import all of the errors that nanomsg can return.
Convert response codes to errors as appropriate.