Request Termination Policy

Block requests with an error message

Block requests with a 401 status code and a custom message. The default status code is 503. To return a raw response instead of a JSON message, set config.body and config.content_type instead of config.message. The body and message parameters are mutually exclusive.

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!