Parse error responses for better error messages.