return bad request if json parse of request body fails on put/post