Dancer2
Dancer2 copied to clipboard
Invalid body causes a 500
When making a call with an invalid body, HTTP::Body croaks, which triggers a 400.
I think we should instead return a 400 for an invalid request.
Objections?
No objection! :+1:
The issue is also present in Dancer v1 https://github.com/PerlDancer/Dancer/issues/1167
Reference tests for this: #1508
Resolved by #1509.