add requireParameters config option, return 400 bad request if required parameter not found in query/body/paras