title: How can I get data from a response after `RestTemplate` throws a `RestClientException` because it couldn't parse it
body: <p>Using <code>restTemplate.exchange(uri, method, entity, responseType)</code> to make a REST call fails with a <code>RestClientException</code> when the response is of the wrong <code>responseType</code>. E.g.,</p>
  
  <pre><code>org.springframework.web.client.RestClientException: Error while extracting response for type [java.util.List&lt;java.lang.Byte&gt;] and content type [application/json;charset=UTF-8];
  nested exception is org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Numeric value (281759) out of range of Java byte
  </code></pre>
  
  <p>Since this is not a <code>RestClientResponseException</code> we don't seem to have access to the response data like status code and body (not even in their raw form).</p>
  
  <p>Is there a way to get (raw) data from the original (unparsable) response? (for logging)</p>