Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return a 404 when paring the route fails #3860

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Mar 11, 2025

This PR changes the router to throw a url parsing error into the context instead of panicing when it fails to parse the current url. On the server, it changes fullstack to return a 404 status if the route is not found or a 500 status if there is another error in the root context

Partially addresses #2739 with better default status codes

@ealmloff ealmloff added router Related to the router implementation fullstack related to the fullstack crate labels Mar 11, 2025
@ealmloff ealmloff marked this pull request as ready for review March 12, 2025 14:05
@ealmloff ealmloff requested a review from a team as a code owner March 12, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fullstack related to the fullstack crate router Related to the router implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant