apple / apple/swift-openapi-generator
DecodingError should return 4xx instead of 500
Open
kind/enhancement
size/S
- Dominant language
- Swift
- Stars
- 2k
- Forks
- 182
- Avg merge
- 13h 28m
- Merged PRs (30d)
- 5
Description
### 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_
Contributor guide
Assessment
This issue has not been assessed yet.