client.parser: fix reply code to string conversion
lib: change error message wording
test: add client and server parser tests