Improve the error message returned when a remote server incorrectly sets the `Content-Type` header in response to a JSON request.