Skip to main content

render_web_error

Function render_web_error 

Source
pub async fn render_web_error(req: Request<Body>, next: Next) -> Response
Expand 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.