org.apache.http.client
Class HttpResponseException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           java.io.IOException
java.io.IOException
               org.apache.http.client.ClientProtocolException
org.apache.http.client.ClientProtocolException
                   org.apache.http.client.HttpResponseException
org.apache.http.client.HttpResponseException
- All Implemented Interfaces: 
- Serializable
- public class HttpResponseException 
- extends ClientProtocolException
Signals a non 2xx HTTP response.
- Since:
- 4.0
- See Also:
- Serialized Form
 
 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
 
 
HttpResponseException
public HttpResponseException(int statusCode,
                             String reasonPhrase)
getStatusCode
public int getStatusCode()
- 
 
getReasonPhrase
public String getReasonPhrase()
- 
 
Copyright © 1999–2020 The Apache Software Foundation. All rights reserved.