Static ReadonlyFOOTER_The ending's CSS, for a page that borrows only footer().
StaticchooserThe language chooser for an error page.
the page's translator
the request the page answers
the chooser's HTML
StaticdocumentThe whole document.
what to draw
the incident ID, or 0 for none
the time to print
the HTML document
StaticfooterThe ending every error page shares: the start-over note, the link to the realm's user portal, and the diagnostics with the time and the incident ID first.
the page's translator
the caller's rows
the incident ID, or 0 for none
the time to print
the HTML
StaticreturnThe language chooser's return path for an error page: the request itself where asking again is harmless (a GET, which these pages answer only ever by refusing again), the realm's front door otherwise.
the request the page answers
a local path
StaticsendReserves the incident ID, draws the page and sends it — in that order and
in one synchronous run, which audit.reserveIncident() requires.
the response
what to draw
StaticsentenceThe first of candidates the page's catalogs hold, drawn with params
(#1327). A family's sentence is looked up BY ERROR CODE — a key test E
cannot see in the source, since it is built from the code — so every
caller hands a chain that ends in a general sentence, and a missing key
never draws its own name.
the page's translator
keys, most specific first; '' entries are skipped
Optionalparams: Record<string, unknown>
the values a sentence may name
the sentence as HTML, or '' where none of them exists
Draws and sends the shared error page (#1326): the error, the background collapsed, a start-over note with a link to the portal, and the diagnostics with the audit row's incident ID, all in the page's language.
A static utility class; it holds no state.