pub struct ErrorContext {
/// The structured error (name, message, stack, source).
pub error: ServerError,
/// The request that failed - call `.pathname()`, read `.params`, etc.
pub request: Request,
/// Whether the server is running in development or production.
pub mode: Mode,
/// A unique id for this occurrence, so a report (e.g. a Sentry event) and a
/// user-facing page can be correlated.
pub error_id: String,
}