pub async fn render_web_error(req: Request<Body>, next: Next) -> ResponseExpand description
Re-renders a WebError response as an htmx fragment, an error page or JSON, by request;
a page route’s failure is never JSON, and a 401 becomes a redirect to the login page.