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 better web errors to the user #2398

Merged
merged 4 commits into from
Feb 1, 2025

Conversation

kradalby
Copy link
Collaborator

@kradalby kradalby commented Feb 1, 2025

This PR continues the work of #2384 by classifying all the web errors and sending appropriate error codes, instead of just 500 for everything.

Depends on #2374

Fixes #2390

@kradalby kradalby marked this pull request as ready for review February 1, 2025 09:26
@kradalby kradalby requested a review from juanfont as a code owner February 1, 2025 09:26
This move separates the logic a bit and allow us to
write specific errors for the caller, in this case the web
layer so we can present the user with the correct error
codes without bleeding web stuff into a generic validate.

Signed-off-by: Kristoffer Dalby <[email protected]>
Signed-off-by: Kristoffer Dalby <[email protected]>
@kradalby kradalby merged commit 45752db into juanfont:main Feb 1, 2025
132 of 141 checks passed
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.

Separate user and server errors in http handlers
3 participants