You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Avi Hayun <av...@gmail.com> on 2014/12/08 18:38:22 UTC
HttpStatus Text Description
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 ?
Re: HttpStatus Text Description
Posted by Avi Hayun <av...@gmail.com>.
GREAT!
Thank you very much Oleg
On Tue, Dec 9, 2014 at 3:58 PM, Oleg Kalnichevski <ol...@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
>
>
Re: HttpStatus Text Description
Posted by Oleg Kalnichevski <ol...@apache.org>.
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