URL error message
I am trying to read URLs with java.net.URL that may have 2 different error messages and I need to print the error messages. The problem I'm having is that both exceptions just say 500 error. How can I print the error message from the page?