Simulate a failure
simulate_failureGet a chosen failure on purpose, to test how an agent or client handles it: an HTTP status from 200 to 504, an HTML error page (html), an empty body (empty) or JSON labelled as text (wrongtype), after an optional delay of up to 10 seconds. The result reports the status, content type, headers and body the REST endpoint sent, and is an error result for statuses of 400 and above. No API key, no account and no sign up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | Yes | The HTTP status to answer with, 200 to 504, or html for an HTML error page, empty for an empty body, or wrongtype for JSON labelled as text. | |
| delay_ms | No | Wait this many milliseconds before answering, 0 to 10000. |