This repository is not maintained anymore. You can find the most recent solution for decoupling operation results and actual application responses in the OperationResults repository.
A sample that shows how to write a Web API in which every Controller method is literally formed by a single line of code, yet with the ability to handle all response types, validation errors, etc.