chromium/third_party/blink/web_tests/http/tests/inspector-protocol/network/response-received-extra-info-status-code.js

(async function(/** @type {import('test_runner').TestRunner} */ testRunner) {
  const {page, session, dp} = await testRunner.startBlank(
      `Tests that the IP address space is reported on responseReceivedExtraInfo.`);

  await dp.Network.enable();
  await dp.Network.setCacheDisabled({cacheDisabled: true});
  testRunner.log('Network Enabled');

  session.evaluateAsync(`fetch('index.html');`);
  let event = await dp.Network.onceResponseReceivedExtraInfo();
  testRunner.log(event.params.statusCode);
  session.evaluateAsync(
      `fetch('/inspector-protocol/network/resources/hello-world.html');`);
  event = await dp.Network.onceResponseReceivedExtraInfo();
  testRunner.log(event.params.statusCode);
  testRunner.completeTest();
})