Handling errors globally

Because no error handler has been configured, so we don’t know what to put there. There are infinite possibilities! Unfortunately we can’t read the mind of the developer, so they will have to configure the error page, alas.

Use snippets! Then it’s a single import.

Note that often times repetition can be more easily avoided in elegant JSON configs than what the Caddyfile allows to express.

1 Like