Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] How to get the HTTP response message using Jetty HttpClient?

Hi,
 
I am using the Jetty HttpClient to talk to an application server. The org.eclipse.jetty.client.ContentExchange class provides getResponseStatus() method. For a successful HTTP request I get 200 as expected. How can I get to the response message ("OK" in this case)? This message is going to be a valuable source of information for us in case of other response statuses (4XX and 5XX).
 
Thanks in advance,
Sachin

Back to the top