Mocks an API endpoint to return a specific HTTP status code only. Useful for simulating server errors like 500 or 404. Supports fixtures for reusable API endpoints.
Given I pw mock the API endpoint "/api/broken" with status 500 Copy
Given I pw mock the API endpoint "/api/broken" with status 500
Mocks an API endpoint to return a specific HTTP status code only. Useful for simulating server errors like 500 or 404. Supports fixtures for reusable API endpoints.