Direct Response
Attach to:
Route
Directly respond to a request with a custom response using direct response Direct Response A traffic management feature that returns a fixed response (body and status code) directly to the client without forwarding the request to a backend. , without forwarding to any backend.
For example, the following configuration returns a 404 Not found! response.
directResponse:
body: "Not found!"
status: 404