driebit / ginger

Ginger: awesome semantic CMS built on Zotonic
http://ginger.nl
Apache License 2.0
29 stars 9 forks source link

Improvement ginger rest #567

Closed linuss closed 5 years ago

rl-king commented 5 years ago

@linuss This closes https://github.com/driebit/ginger/pull/550 right?

linuss commented 5 years ago

@rl-king Hm, well, yes and no. It will log and return the proper error, but it won't return the right status code (all exceptions still result in a 500). I'd put the check on category in a malformed_request callback