Mock servers in Mittelware: a fake API for HTTP, WebSockets and streaming
Run a fake API on a port of its own, with routes, cases, WebSocket connections and streamed AI-style answers, then flip it into a failure on demand. Build one by hand or import it from an OpenAPI spec.