return 500 for missing fields