Package org.apache.http.client
Class HttpResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.http.client.ClientProtocolException
-
- org.apache.http.client.HttpResponseException
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpResponseException extends ClientProtocolException
Signals a non 2xx HTTP response.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
reasonPhrase
private static long
serialVersionUID
private int
statusCode
-
Constructor Summary
Constructors Constructor Description HttpResponseException(int statusCode, java.lang.String reasonPhrase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getReasonPhrase()
int
getStatusCode()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
statusCode
private final int statusCode
-
reasonPhrase
private final java.lang.String reasonPhrase
-
-