title: How do I retrieve HTTP status code and response body when an RestClientException is thrown?
body: <p>The methods of <code>RestTemplate</code> such as <code>postForEntity()</code> throw <code>RestClientException</code>. I would like to extract the HTTP status code and response body from that exception object in the catch block. How can I do that?</p>