metamuffin's personal website


About 1732172917920 milliseconds have passed since midnight of the january the first in 1970.
------------------------------------------------------
            .ok()
    }
}



======================================
    Contents of "error.rs"
======================================
use std::fmt::Display;

use crate::layout::{DynScaffold, Scaffold};
use rocket::{
    catch,
    http::Status,
    response::{self, Responder},
    Request,
};

#[catch(default)]
pub fn r_catch<'a>(status: Status, _request: &Request) -> DynScaffold<'a> {
    Scaffold {
        title: "Error".to_string(),
        content: markup::new! {
            h2 { "Error" }
            p { @format!("{status}") }
        },
    }
}