Ensure 400 status code is returned when invalid data is POSTed