ucanto
ucanto copied to clipboard
Malformed payload results in handler execution error, not bad request (400)
Decoding input payload throws and is caught resulting in a handler execution error.
This could be returned as a HTTP response (similar to what happens when calling accept) with status 400 (bad request) to communicate the issue to users a bit better.
@alanshaw I have addressed this issue can you please take a look