Exit Transformer

Enterprise only

Return custom 404 error in HTMLv1.3+

Configure the plugin to transform 404 responses into custom HTML 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.

For a full walkthrough, see Transform a 404 response message. Use the following example in place of the one in the guide.

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!