Reference

notFound

Throws a route-level 404 control error. Use this from loaders, metadata, middleware, or route handlers when the matched route is valid but the requested resource is absent.

Signature

function notFound(): never