Skip to main content

Module error_render

Module error_render 

Source

Functions§

adopt_rejection
Extractor rejections answer plain text; turned into a WebError they render like every other failure.
full_page
Route layer of the page routers: a browser navigation never shows a failure as raw JSON.
render_web_error
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.