Module perseus::error_pages

source ·
Expand description

Utilities surrounding ErrorPages and their management.

Structs

A representation of an error page, particularly for storage in transit so that server-side rendered error pages can be hydrated on the client-side.
A representation of the views configured in an app for responding to errors.

Type Definitions

The function the user must provide to render the document <head> associated with a certain error page. Note that this will only be rendered on the server-side, and will be completely unreactive, being directly interpolated into the document metadata on the client-side if the error page is loaded.
The function 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.