diff --git asynchronous.js asynchronous.js
old mode 100644
new mode 100755
index c16d039..91534d7
--- asynchronous.js
+++ asynchronous.js
@@ -161,7 +161,19 @@ Drupal.asynchronous.prototype = {
       success: function(data) {
         self.processData(data, url);
         self.scrollTo(hash || false);
-      } 
+      },
+      error: function(xhr, textStatus, errorThrown) {
+        if(xhr.responseText) {
+          // the response error content (ie. access denied) should also be json
+          // but jQuery returns it as string so we convert it
+          var data = eval("(" + xhr.responseText + ")");
+          self.processData(data, url);
+          self.scrollTo(hash || false);
+        }
+        else {
+          $('<div id="async-error">An error occured. Please try to refresh the page.</div>').appendTo($('body'));
+        }
+      }
     });
   },
   
