hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject Re: HttpException question
Date Mon, 14 Jun 2004 07:59:24 GMT
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.frisaye@t4hr.com> 
14.06.2004 08:48
Please respond to
"Commons HttpClient Project"


To
"Commons HttpClient Project" <commons-httpclient-dev@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



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message