Mocks an API JSON response for a specific route
The Playwright Page object
The API path/route to mock
The HTTP status code to return
The response data to return (object or array)
Promise that resolves when the mock is set up
Mocks an API JSON response for a specific route