Setting HttpContext Response using HttpResponseMessage or Request.CreateResponse in WebApi2

Background In my recent Continuous Improvement (CI) initiative I have been introducing few ActionFilters for the WebApi Controllers. These action filters validates the request by using payload or the current user token against some business logics. If the request is not fulfilling business requirements then the filter should stop further processing and send …