Module perseus::error_pages[][src]

Expand description

Utilities regarding the formation of error pages for HTTP status codes, like a 404 Not Found page.

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 type alias for the HashMap the user should provide for error pages.

Type Definitions

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.