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: call it directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | Yes | ||
| delay_ms | No |