Better error handling on response parsing.