code: function mapResponse(response) {
    response.body = response.text;
    response.statusCode = response.status;
    return response;
  }
docs: map XHR response object properties to Node.js request lib's response object properties