Return 422 instead of 500 when handling body
Return 422 instead of 500 when handling body

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)
callsign-core/cowboy_hybi00,layerhq/cowboy,LineMetrics/cowboy,essen/cowboy,rbalint/pkg-erlang-cowboy,noname007/cowboy,K2InformaticsGmbH/cowboy,LineMetrics/cowboy,heroku/cowboy,manastech/cowboy,MSch/cowboy,CrankWheel/cowboy,ninenines/cowboy,grahamrhay/cowboy,lpgauth/cowboy,bsmr-erlang/cowboy,ferd/cowboyku,Reimerei/cowboy,LineMetrics/cowboy,unisontech/cowboy,pap/cowboy,sile/cowboy,venkateshreddy/cowboy,unisontech/cowboy,cad627/cowboy,odo/cowboy,imdeps/cowboy,lpgauth/cowboy,piboye/cowboy,essen/cowboy,cad627/cowboy,heroku/cowboy,binarin/cowboy,paulperegud/cowboy,turtleDeng/cowboy,omusico/cowboy,yangchengjian/cowboy,rabbitmq/cowboy,acrispin/cowboy,yangchengjian/cowboy,kivra/cowboy,bobos/ecweb,layerhq/cowboy,dangjun625/cowboy,276361270/cowboy,piboye/cowboy,nviennot/cowboy,manastech/cowboy,linearregression/cowboyku,binarin/cowboy,hairyhum/cowboy,heroku/cowboyku,callsign-core/cowboy_hybi00