Switched to custom error codes enumeration for future cross platform compilation