How can i read the body even a IOException or ResourceAccessException occcur in Spring RestClient?
I am using RestClient (not Template!) to send a request to another server. Because of a missing header i get a 400 Error but can not read the body. When i make the request with postman i get a body “header XY missing” i need this Error in my Programm, so i need a way to read/log the body.
How to log Spring Boot 3 httpRestClient error response.body as readable string?
Prior to asking this, I am already tried using: