When exceptions are passing through the ExceptionHandler, exceptions are described more detailed compared to v6.0. The error message now not only contains the error string, it also contains - if it is returned from the server - the header error message too. The error example below is based on the getThrowablesByBody above. And yes, even if it returns an error in the header the extendedException is a copy of the CurlWrapper in this case, so it can extract furthermore data from the body.
HTTP Head Error message: Error 404 returned from server: "404". Error message from the json body:
Since the message body has a json-object that contains another message, we can also extract that directly from the exception via the getParsed() method:
The example is based on a document request, where document is missing, rather than the URL itself.