router icon indicating copy to clipboard operation
router copied to clipboard

Invalid URL not throwing a 404

Open ericclemmons opened this issue 1 year ago • 0 comments

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

  1. Start https://stackblitz.com/github/tanstack/router/tree/main/examples/react/quickstart-file-based?file=src/main.tsx
  2. Navigate to an invalid URL (e.g. /not-found)
  3. Server returns a 200

Expected behavior

Should return a 404.

Screenshots or Videos

Image

Platform

  • OS: macOS
  • Browser: Arc Version 1.63.0 (54427), Chromium Engine Version 129.0.6668.90

Additional context

No response

ericclemmons avatar Oct 14 '24 14:10 ericclemmons