router
router copied to clipboard
Invalid URL not throwing a 404
Which project does this relate to?
Start
Describe the bug
http://localhost:3000/not-found returns a 200, not a 400
Your Example Website or App
https://xoriwpjxoogithub-2brh--3001--134daa3c.local-credentialless.webcontainer.io/not-found
Steps to Reproduce the Bug or Issue
- Start https://stackblitz.com/github/tanstack/router/tree/main/examples/react/quickstart-file-based?file=src/main.tsx
- Navigate to an invalid URL (e.g.
/not-found) - Server returns a
200
Expected behavior
Should return a 404.
Screenshots or Videos
Platform
- OS: macOS
- Browser: Arc Version 1.63.0 (54427), Chromium Engine Version 129.0.6668.90
Additional context
No response