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.
headers[].namestringyesHeader field name.
headers[].valuestringyesHeader field value.
statusintegeryesHTTP status code to return.

Example

filter: static_response
status: 200
body: "OK"