You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Xavier Frisaye <x....@t4hr.com> on 2004/06/14 08:48:07 UTC
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: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
Re: HttpException question
Posted by Roland Weber <RO...@de.ibm.com>.
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" <x....@t4hr.com>
14.06.2004 08:48
Please respond to
"Commons HttpClient Project"
To
"Commons HttpClient Project" <co...@jakarta.apache.org>
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:
commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail:
commons-httpclient-dev-help@jakarta.apache.org