Use errno module instead of inline constant

I don't like numeric constants and `errno` provide a nice readable way to look up the string representation instead.