Rest API - API Testing and Monitoring
Given this contract test snippet in JavaScript using Pact:
provider.addInteraction({
state: 'user exists',
uponReceiving: 'a request for user data',
withRequest: { method: 'GET', path: '/user/123' },
willRespondWith: { status: 200, body: { id: 123, name: 'Alice' } }
});
What will happen if the provider returns status 404 instead of 200 during the test?