From: Julien Dramaix Date: Fri, 6 Jul 2012 15:39:16 +0000 (+0000) Subject: http error starts from 400 error codes X-Git-Tag: release-1.3.2~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3db4377ec292465e994863a72e51355647a8b85e;p=gwtquery.git http error starts from 400 error codes --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java index 58ac3f62..64e713db 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java @@ -135,7 +135,7 @@ public class Ajax extends GQuery { } public void onResponseReceived(Request request, Response response) { - if (response.getStatusCode() > 202) { + if (response.getStatusCode() >= 400) { if (onError != null) { onError.fe(response.getText(), "error", request, response); }