hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avi Hayun <avrah...@gmail.com>
Subject Re: HttpStatus Text Description
Date Tue, 09 Dec 2014 14:07:53 GMT
GREAT!


Thank you very much Oleg

On Tue, Dec 9, 2014 at 3:58 PM, Oleg Kalnichevski <olegk@apache.org> wrote:

> On Mon, 2014-12-08 at 19:38 +0200, Avi Hayun wrote:
> > Hi,
> >
> > In HttpClient v3 there was a method which translated the status code to
> the
> > text message:
> > *getStatusText
> > <
> https://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HttpStatus.html#getStatusText(int)
> >*
> >
> >
> > What is the equivalent in HttpComponent-client  (v4) ?
> >
> >
> > I see the ENUM of statusCode:
> >
> https://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/HttpStatus.html
> >
> >
> > But how do I get the text description ?
>
> ReasonPhraseCatalog#getReason
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

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