fixing deserialization of bad request responses
Merge pull request #3 from markcowl/master

fixing deserialization of bad request responses