Hello Xavier,

if the server sends an HTTP status code,
there is no need for an exception. Just use
HttpMethod.getStatusCode().

If there is an exception, there is no status
code to include in the message. Unless you
throw your own exception, in which case
you are free to generate every message
you consider useful.

cheers,
  Roland





"Xavier Frisaye" <[EMAIL PROTECTED]> 
14.06.2004 08:48
Please respond to
"Commons HttpClient Project"


To
"Commons HttpClient Project" <[EMAIL PROTECTED]>
cc

Subject
HttpException question






Hi,

I would like to have in the message of an HttpException the reason
(http) code.

Do you think it could be useful or not?

Regards,

Xavier Frisaye

---------------------------------------------------------------------
To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: 
[EMAIL PROTECTED]


Reply via email to