import { HttpError } from "fresh"; import type { PageProps } from "fresh"; export default function ErrorPage(props: PageProps) { if (props.error instanceof HttpError && props.error.status === 404) { return (
Not Found: {props.url.pathname}
); } return (
Something went wrong
); }