title: How to get redirect status in puppeteer?
body: <p>I'm trying write Jest test using puppeteer</p>
  
  <pre class="lang-js prettyprint-override"><code>describe('Downloads', () =&gt; {
      it(`should refirect to download page for ios`, async () =&gt; {
          await page.setUserAgent('exotic');
          let response = await page.goto(`http://localhost:8888/downloads`, {waitUntil: "networkidle0"});
          let url = page.url();
          expect(response.status()).toBe(303);
          expect(url).toBe(`http://localhost:8888/downloads/ios`);
      });
  });
  </code></pre>
  
  <p>But response status is <code>200</code> because <code>goto</code> return response for <code>http://localhost:8888/downloads/ios</code></p>
  
  <p>How to get redirect status code?</p>