URL stream throws exception when trying to read from input stream
posted 9 years ago
I tried reading from an input stream which returned a 401. Actually, the server side returns 401 whenever the application server cannot fulfill the client's request, however the 401 contains a message which I will like to read.
I have tried this with mozilla and the return message is properly displayed even at 401. How can I read this message?