import Elementary /// The HTML page rendered for a not-found response. struct ErrorPage: HTMLDocument, Sendable { // MARK: Document /// The page's content. var body: some HTML { h1 { "Page Not Found" } p { "Sorry, but the page you were trying to view does not exist." } } /// The metadata and stylesheet link placed in the document head. var head: some HTML { meta(.charset(.utf8)) meta( .name(.viewport), .content("width=device-width, initial-scale=1") ) link( .rel(.stylesheet), .href("/css/error.css") ) } /// The document language. var lang: String { "en" } /// The document title. var title: String { "Page Not Found" } }