I'm working with WireMock.Net, and I want to configure Wiremock with the same URI, it sometimes returns OK(200) and sometimes Error Response(500). The examples I've seen is always returning the same status code, for example:
WireMockServer.Given(Request.Create().WithPath("/some/thing").UsingGet())
.RespondWith(
Response.Create()
.WithStatusCode(200)
.WithBody("Hello world!"));
How can I simulate for example: return OK (200) on an even request and return Internal-Server-Error (500) on an odd request. I want to respond differents bodys as well.