diff --git a/README.md b/README.md index 3faa297..a451100 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,7 @@ You can customise the responses that IPP sends for invalid requests. For example - Drop the connection entirely (no response). - Redirect to a new website. - Send a different status code. +- Send a custom 404 page. - And so on... See [Custom responses](docs/custom-responses.md) for more details. diff --git a/docs/custom-responses.md b/docs/custom-responses.md index 874a85d..2cbce10 100644 --- a/docs/custom-responses.md +++ b/docs/custom-responses.md @@ -19,6 +19,8 @@ Possible options are: | `null` | `null` | `null` | Drops the connection without responding. | | `false` | `boolean` | `false` | Responds with the default status code. | +If you want to send a custom 404 page, you would do that with either of the below options - using a [custom function](#custom-function), or through your [reverse proxy](#customising-the-response-using-your-reverse-proxy). + ## Custom function If you want to go even further, you can write your own custom function. Do this by taking a copy of the `app/dist/invalidRequestHandler.js` file, @@ -53,6 +55,8 @@ If you wanted to drop the connection completely without responding at all, you c ### Apache +Show a custom 404 page: + ``` ProxyErrorOverride On 404