phantom/bindings.js
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;
    }
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;
    }
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 ; }
Wrapping response helper
Wrapping response helper