extend/cowboy — pull request #353 by CamShaft (2012-12-31 05:33:37+00:00)
Title: Return 422 instead of 500 when handling body in REST

Using a 4xx error would be more appropriate for this since the server is parsing the content from the client and needs to let the client know the data is malformed (not the actual HTTP request but i.e. JSON semantics). The definition for 422 is described in [RFC 4918](https://tools.ietf.org/html/rfc4918#section-11.2).