I am trying to catch Http Errors in my servlet and display it on the browser
when the error are caught. However, I would like ot do the same with application
instead on browser. I am using

String inString = uc.getHeaderField(0);

when the eror is displayed it is in the form
"Http/1.1 503 ok"

I would like to get more info when error is displayed.
There is a option of passing Sting rather than integer in getHeaderiled Method.
Do you know what sting should i pass.
Or do you know any way that I can get more info about the error like
"Http/1.1 503 Service unavailable"

Help is really appeciated.