import { Head } from "fresh/runtime"; import { MainLayout } from "@components/layouts/main.tsx"; import { HttpError, PageProps } from "fresh"; export default function ErrorPage(props: PageProps) { const error = props.error; // Contains the thrown Error or HTTPError if (error instanceof HttpError) { const status = error.status; // HTTP status code // Render a 404 not found page if (status === 404) { return

404 - Page not found

; } } return ( <> 404 - Page not found

404 - Page not found

The page you were looking for doesn't exist.

Go back home
); }