Better error messages for forbidden parameters/required parameters. RE: #2031