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

DecodingError should return 4xx instead of 500 #717

Open
gayathrisairam opened this issue Jan 23, 2025 · 0 comments
Open

DecodingError should return 4xx instead of 500 #717

gayathrisairam opened this issue Jan 23, 2025 · 0 comments
Assignees
Labels
kind/enhancement Improvements to existing feature. size/S Small task. (A couple of hours of work.)
Milestone

Comments

@gayathrisairam
Copy link
Contributor

Motivation

If there is an error in decoding a request, a 500 is thrown currently. This should be a 4xx status code.

Proposed solution

Conform DecodingError to HTTPResponseConvertible protocol.

Alternatives considered

No response

Additional information

No response

@gayathrisairam gayathrisairam added kind/feature New feature. status/triage Collecting information required to triage the issue. labels Jan 23, 2025
@czechboy0 czechboy0 added kind/enhancement Improvements to existing feature. size/S Small task. (A couple of hours of work.) and removed kind/feature New feature. status/triage Collecting information required to triage the issue. labels Jan 23, 2025
@czechboy0 czechboy0 added this to the Post-1.0 milestone Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements to existing feature. size/S Small task. (A couple of hours of work.)
Projects
None yet
Development

No branches or pull requests

2 participants