]> source.dussan.org Git - gwtquery.git/commitdiff
http error starts from 400 error codes
authorJulien Dramaix <julien.dramaix@gmail.com>
Fri, 6 Jul 2012 15:39:16 +0000 (15:39 +0000)
committerJulien Dramaix <julien.dramaix@gmail.com>
Fri, 6 Jul 2012 15:39:16 +0000 (15:39 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java

index 58ac3f6227a0bd74e9e2392e8b6cfd9929a82d72..64e713db0b24bf4e1a248d3e1c97502e9950b5b2 100644 (file)
@@ -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);
           }