Exit Transformer

Enterprise only

Customize the 404 error messagev1.3+

Configure the plugin to transform 404 responses and add a custom error message.

This example uses the handle_unknown parameter, which only takes effect on a globally configured instance of the plugin when a 404 error occurs. If you’re running this plugin on-prem, you must configure it in the default Workspace.

See Transform a 404 response message for a full how-to guide with this example.

Prerequisites

  • untrusted_lua must be set to either on or sandbox in your kong.conf file for this plugin to work.

Set up the plugin

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!