diff --git a/src/ns.http.js b/src/ns.http.js
index <HASH>..<HASH> 100644
--- a/src/ns.http.js
+++ b/src/ns.http.js
@@ -21,7 +21,10 @@ ns.http = function(url, params, options) {
         })
         .fail(function(jqXHR, textStatus, errorThrown) {
             var error = errorThrown || textStatus || 'unknown error';
-            promise.resolve({ error: error });
+            promise.resolve({
+                error: error,
+                xhr: jqXHR
+            });
         });
 
     return promise;
Add XHR to ns.http result