g1t/apps/web/app/lib/not-found.server.ts
Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Team plan, an open-source pool, monthly trials and honest metering; the sidebar for everyone; a workspace that stays put | 1 | import { data } from "react-router"; |
| 2 | ||
| 3 | import type { MissingKind } from "./not-found"; | |
| 4 | ||
| 5 | /** | |
| 6 | * The 404 a loader throws when the viewer cannot see what the address | |
| 7 | * names. It carries only the kind of thing, never whether it exists, and is | |
| 8 | * thrown the same way for something private and something missing. | |
| 9 | */ | |
| 10 | export function notFound(kind: MissingKind) { | |
| 11 | return data({ kind }, { status: 404 }); | |
| 12 | } |