Request Termination Policy

Echo response back to client

Block requests and echo the request back to the client with debugging information about the AI Gateway instance, such as the internal routing details it matched for the request. You can also combine the config.echo parameter with a header name specified in config.trigger to make the policy trigger only on specific requests and avoid disturbing real traffic. Because the echoed response exposes internal routing details, use a trigger and remove the policy when you finish debugging.

Set up the policy

Attach the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!