marellocommerce / marello

Marello
Other
52 stars 18 forks source link

Handle UniqueConstraintViolationException #39

Open clicktrend opened 6 years ago

clicktrend commented 6 years ago

Hello,

if I wrongly post the same order a second time an UniqueConstraintViolationException is thrown. Everything fine. But the server responses "401 Unauthorized". 500 or any similar error code is better.

Thanks

24198 commented 6 years ago

Hi @clicktrend,

Thank you for the feedback! I'll have a look at it and see if we can enhance the error responses in future.

Kind Regards,

Jaimy Casteleijn