Skip to content

DecodingError should return 4xx instead of 500 #717

Open
@gayathrisairam

Description

@gayathrisairam

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

Metadata

Metadata

Labels

kind/enhancementImprovements to existing feature.size/SSmall task. (A couple of hours of work.)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions