code: function createTransactionResponse(response, body) {
    const transactionRes = {
      statusCode: response.statusCode,
      headers: Object.assign({}, response.headers),
    };
    if (Buffer.byteLength(body || '')) {
      transactionRes.bodyEncoding = detectBodyEncoding(body);
      transactionRes.body = body.toString(transactionRes.bodyEncoding);
    }
    return transactionRes;
  }
docs: Real transaction response object factory. Serializes binary responses
  to string using Base64 encoding.
  
  @param {Object} response Node.js HTTP response
  @param {Buffer} body HTTP response body as Buffer