code: function (rawResponse, requestOptions, responseBody) {
          if (!rawResponse) {
              return;
          }
  
          var responseJSON;
  
          if (rawResponse.toJSON) {
              responseJSON = rawResponse.toJSON();
              responseJSON.request && _.assign(responseJSON.request, {
                  data: requestOptions.form || requestOptions.formData || requestOptions.body || {},
                  uri: { // @todo remove this
                      href: requestOptions.url && requestOptions.url.href || requestOptions.url
                  },
                  url: requestOptions.url && requestOptions.url.href || requestOptions.url
              });
  
              rawResponse.rawHeaders &&
                  (responseJSON.headers = this.arrayPairsToObject(rawResponse.rawHeaders) || responseJSON.headers);
  
              return responseJSON;
          }
  
          responseBody = responseBody || '';
  
          // XHR :/
          return {
              statusCode: rawResponse.status,
              body: responseBody,
              headers: _.transform(sdk.Header.parse(rawResponse.getAllResponseHeaders()), function (acc, header) {
                  acc[header.key] = header.value;
              }, {}),
              request: {
                  method: requestOptions.method || 'GET',
                  headers: requestOptions.headers,
                  uri: { // @todo remove this
                      href: requestOptions.url && requestOptions.url.href || requestOptions.url
                  },
                  url: requestOptions.url && requestOptions.url.href || requestOptions.url,
                  data: requestOptions.form || requestOptions.formData || requestOptions.body || {}
              }
          };
      }
docs: Returns a JSON compatible with the Node's request library. (Also contains the original request)
  
  @param rawResponse Can be an XHR response or a Node request compatible response.
  about the actual request that was sent.
  @param requestOptions Options that were used to send the request.
  @param responseBody Body as a string.