static_response

Returns a fixed response without contacting any upstream.
On this page

Returns a fixed response without contacting any upstream.

Configuration Notes

Useful for health checks, status endpoints, or stub routes. Combine with conditions to serve static responses on specific paths.

Configuration

FieldTypeRequiredDescription
bodystringnoOptional response body string.
headersHeaderEntry[]noResponse headers to include. Names and values must be valid HTTP field syntax. Framing and hop-by-hop headers (content-length, transfer-encoding, connection, keep-alive, upgrade, te, trailer) are rejected because the proxy owns response framing.
headers[].namestringyesHeader field name.
headers[].valuestringyesHeader field value.
statusintegeryesHTTP status code to return (200..=599; informational 1xx statuses cannot be a final response).

Example

filter: static_response
status: 200
body: "OK"