404 page in dev server returns 200 status code instead of 404 #11095
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
If you try to access to assets that don't exist, they must be 404, but 200 are returned. It makes harder to debug because it is confusing with existing assets.
If you try to load static CSS files in your site, the content of 404 page will be tried to be interpreted as CSS.
Reproducible demo
No response
Steps to reproduce
node --run start
(Node 22)Instead of 3–6, you can run
curl -I http://localhost:3000/foo/bar/baz/qux/quux
.Expected behavior
Status code is 404
Actual behavior
Status code is 200
Your environment
Self-service
The text was updated successfully, but these errors were encountered: