Dancer2 icon indicating copy to clipboard operation
Dancer2 copied to clipboard

Invalid body causes a 500

Open xsawyerx opened this issue 7 years ago • 4 comments

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?

xsawyerx avatar Jul 04 '19 07:07 xsawyerx

No objection! :+1:

cromedome avatar Jul 04 '19 13:07 cromedome

The issue is also present in Dancer v1 https://github.com/PerlDancer/Dancer/issues/1167

ice-lenor avatar Jul 04 '19 15:07 ice-lenor

Reference tests for this: #1508

xsawyerx avatar Jul 08 '19 12:07 xsawyerx

Resolved by #1509.

cromedome avatar Apr 20 '20 02:04 cromedome