code: function wrapFailure(reason) {
        var res = {
          fail: true,
          url: page.url,
          body: getContent(),
          headers: pageInformation.response.headers,
          status: pageInformation.response.status
        };
  
        if (reason)
          res.reason = reason;
  
        if (pageInformation.error)
          res.error = pageInformation.error;
  
        return res;
      }
docs: Wrapping response helper