diff --git a/httpclient/src/examples/org/apache/http/examples/client/ClientWithRequestFuture.java b/httpclient/src/examples/org/apache/http/examples/client/ClientWithRequestFuture.java index c12a75de7..5643dc127 100644 --- a/httpclient/src/examples/org/apache/http/examples/client/ClientWithRequestFuture.java +++ b/httpclient/src/examples/org/apache/http/examples/client/ClientWithRequestFuture.java @@ -58,7 +58,7 @@ public class ClientWithRequestFuture { @Override public Boolean handleResponse(HttpResponse response) throws ClientProtocolException, IOException { // simply return true if the status was OK - return response.getStatusLine().getStatusCode() == 200; + return response.getStatusLine().getStatusCode() == HttpStatus.SC_OK; } };