Forum Discussion
There are two ways.
1. Randomly send the response with different status code.
2. Send a header in the request. Based on the header value, send the response.
For both above, you can use Dispatch as Script for better control to send the response.
1. Randomly send the response with different status code.
2. Send a header in the request. Based on the header value, send the response.
For both above, you can use Dispatch as Script for better control to send the response.
Thanks for answering, but I'm still unclear on exactly how to get the status into the response.
for #1, where do I put it?
for #2, what header? I've tried what I thought it should be, but it did not work, so I must have used the wrong spelling.
I don't have a script, but I found information online that said there is an option in the mock response panel where I can set the status code. I can't find that option, does that option not exist? Is a script the only way to do it?