better to rename this to what it does, rather than HTTP code. `pageNotFoundHandler` is probably better