Responds with 400 error on invalid json input