Skip to content

notFound

Throws a RoutingError(404), caught by the nearest +error.tsx+error.jsx. On an initial SSR response, Houdini returns HTTP 404 before streaming begins.

function notFound(): never
import { notFound } from '$houdini'
if (!data.show) notFound()