diff --git a/lib/Rest.js b/lib/Rest.js
index <HASH>..<HASH> 100644
--- a/lib/Rest.js
+++ b/lib/Rest.js
@@ -106,6 +106,10 @@ Rest.prototype.promiseResponse = function(result, handlerCallback) {
         returnValue = {500: "500 Internal Server Error"}[statusCode];
       }
 
+      if(returnValue instanceof Response) {
+        return returnValue;
+      }
+
       if(returnType === "statusCode") {
         log.debug("returnType = "+returnType);
         statusCode = returnValue;
Fix file download and Response object as return value problem