From 3db4377ec292465e994863a72e51355647a8b85e Mon Sep 17 00:00:00 2001 From: Julien Dramaix Date: Fri, 6 Jul 2012 15:39:16 +0000 Subject: [PATCH] http error starts from 400 error codes --- .../java/com/google/gwt/query/client/plugins/ajax/Ajax.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5