Change request failure rate
By default, there's 50% chance that Dev Proxy returns a random error for your API. You can change the likelihood to a different value using the --failure-rate
option, for example:
devproxy --failure-rate 80
Alternatively, you can configure the failure rate in the Dev Proxy configuration file.
{
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.14.1/rc.schema.json",
"rate": 80
}
Important
When you configure the failure rate to 0, Dev Proxy will pass all requests through to the original API. When you configure it to 100, Dev Proxy will simulate an error for every matching request.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.