# Function: experimental_notFound()

> 

> **experimental\_notFound**(): `never`

Defined in: [packages/server/src/adapters/next-app-dir/notFound.ts:10](https://github.com/trpc/trpc/blob/a357903312114c6c08952de2c9edc51c713367be/packages/server/src/adapters/next-app-dir/notFound.ts#L10)

Like `notFound()` from `next/navigation`, but throws a `NOT_FOUND`
`TRPCError`, which `nextAppDirCaller` turns into Next.js's not-found
page.

## Returns

`never`
