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

Change errror code to 404 if no app is found #2343

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ApproximateIdentity
Copy link

Currently an error code of 500 is returned when no app is found for a route, but this changes it to a 404 which seems more appropriate. See this issue for more context:

#1935

Honestly I'm not sure if this change is really possible since maybe the currently functionality is required for compatibility. I tried running tests, but I had some issues. At the very least this appears to fix the problems for me so I figured I would open up a PR to solicit feedback.

Currently an error code of 500 is returned when no app is found for a
route, but this changes it to a 404 which seems more appropriate. See
this issue for more context:

    unbit#1935
This partially reverts the previous commit. Now it will return 500 if
the no-default-app setting is unset. This makes sense since in that case
there should always be some app to choose from. But if no-default-app is
set, then it returns a 404 if one is not found.
@ApproximateIdentity
Copy link
Author

I made a slight change to the PR so that a 404 is only returned if no-default-app is set. I think my original change was a bit too broad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant