#Next 13 not-found page returns 200 status code

7 messages · Page 1 of 1 (latest)

toxic gyro
#

When I use app router not-found.tsx page returns 200 status code for all dynamic routes. The most strange thing that if I remove loading.tsx it returns 404 status code as expected

undone islandBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

sudden anvil
#

This seems to be intended behavior (See: https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming#status-codes)
I would love to see a better description though since I don't understand how it should not affect SEO and also it kind of breaks our alert tooling since it never returns a non 200 code

Built on top of Suspense, Loading UI allows you to create a fallback for specific route segments, and automatically stream content as it becomes ready.

turbid moth
sudden anvil
#

I still don't really get why a 200 status code on a not-found page does not (negatively) affect SEO

turbid moth
#

Why would it affect SEO?