How to Resolve NextJS Not Returning Correct Status for 404 Pages
Aug 25, 2025 · 2 min read · I was struggling to understand why my NextJS project using app router was not returning a 404 status code when I used the built in notFound() function. This took to me some time to figure out, so I am sharing the fix here in hopes that it will help s...
Join discussion


