Skip to content

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