Enumerate all error codes and changed them to simple strings

... as suggested by @darobin in #200.