page.route
Also written: route.fulfill, route.continue
A Playwright call that catches the page's requests to a URL so the test can answer with its own status and JSON, such as a fake 500. It affects only that test's page and leaves the real server untouched.