hey! show me please example of intercepting all the page requests and checking their statuses in playwright in typescript.
Here is an example of how you can intercept all page requests and check their statuses using Playwright in TypeScript:
```
import { chromium } from 'playwright';

(async () => {
  const browser = await chromium.launch();
  const context = await browser.newContext();
  const page = await context.newPage();

  // Enable request interception
  await page.setRequestInterception(true);

  page.on('request', (request) => {
    console.log(`Request: ${request.method()} ${request.url()}`);
  });

  page.on('response', (response) => {
    const statusCode = response.status();
    const statusText = response.statusText();
    console.log(`Response: ${statusCode} ${statusText}`);

    // Check the status code
    if (statusCode >= 400) {
      console.error(`Error: ${statusCode} ${statusText}`);
    }
  });

  // Navigate to a page
  await page.goto('https://example.com');

  // Wait for the page to finish loading
  await page.waitForLoadState('networkidle2');

  // Close the browser
  await browser.close();
})();
```
Let me explain what's happening in this code:

1. We launch a new instance of the Chromium browser using `chromium.launch()`.
2. We create a new context and page using `browser.newContext()` and `context.newPage()`.
3. We enable request interception using `page.setRequestInterception(true)`. This allows us to intercept all
hey! show me please example of intercepting all the page requests and checking their statuses in playwright in typescript.

To intercept all the network requests and check their statuses using Playwright in TypeScript, you can use the `networkIntercept` function. Here's an example:

```typescript
import { chromium, Browser, Page } from 'playwright';

async function interceptNetworkRequests(browser: Browser, page: Page) {
  await page.route('**', (route, request) => {
    console.log(`Intercepted request: ${request.url()}`);
    route.continue({ status: 200 }); // Simulate a successful response with status 200

    // You can also check the status of the request like this:
    // route.continue(response => {
    //   console.log(`Request status: ${response.status()}`);
    // });
  });

  await page.goto('http://your-test-page.com');
}

(async () => {
  const browser = await chromium.launch();
  const page = await browser.newPage();

  await interceptNetworkRequests(browser, page);

  await browser.close();
})();
```

In this example, the `interceptNetworkRequests` function intercepts all network requests by using the `**` pattern as the URL. For each inter