How to get the body of HTTP Response if status code is 500?
posted 4 years ago
How do you get the body of a HTTP Response if it has a status code of HTTP 500? When I receive the response below, it is automatically catch as IOException. However, I am unable to get the body attached to it. How do I get the body attached to the response without using any 3rd party API?