Map asio errors to std error conditions.
Simulate proposed error code enums using namespaces.