Skip to content

Glossary: Next.js Basics

not-found.js

The special file for the page shown for unknown URLs and when `notFound()` is called. It sits inside the root layout, so the menu stays.

Where the book teaches it

Related terms

notFound()HTTP status codes