pub type ErrorPageTemplate<G> = Box<dyn Fn(String, u16, String, Option<Rc<Translator>>) -> View<G> + Send + Sync>;
Expand description

The callback to a template the user must provide for error pages. This is passed the status code, the error message, the URL of the problematic asset, and a translator if one is available . Many error pages are generated when a translator is not available or couldn’t be instantiated, so you’ll need to rely on symbols or the like in these cases.