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

Enhance 404 error responses for non existing routes #2

Open
g0di opened this issue Aug 5, 2024 · 0 comments
Open

Enhance 404 error responses for non existing routes #2

g0di opened this issue Aug 5, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@g0di
Copy link
Owner

g0di commented Aug 5, 2024

For the moment, when requesting an unexisting route of an API using the library, we get a 404 error with a detail message just stating that the requested route does not exist.

We may enhance this response to include as well:

  • In the detail property, mention which route has been requested
  • In the detail property provide a suggestion about what other existing route the client might wanted to actually request. This is useful for catching typos
  • In the object add custom property containing the requested route
  • Eventually, add a property listing all routes more or less close to the requested URI
@g0di g0di added the enhancement New feature or request label Aug 5, 2024
@g0di g0di self-assigned this Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant