I'm using HttpClient to make REST API calls. However, there's no way to get the error message returned, that I can see. This is because an exception is thrown, e.g. on HTTP 400, so I can't proceed to echo any error.
Is there any way to prevent the exception and get the error?