generate 400 Bad Request response for invalid args to JSON/XML api