not-found.js file is used to render UI when the notFound() function is thrown within a route segment.notFound() for Categories and Sub Categories that do not exist. This renders the closest appropriate not-found.js.not-found.js currently only renders when triggered by the notFound() function. We're working on support for catching unmatched routes (404).