What's the equivalent of Zend_Controller_Plugin_ErrorHandler and Zend_Controller_Action_Exception in Zend framework 2? I am used to writing an ErrorController in past versions of the framework (eg http://framework.zend.com/manual/1.12/en/zend.controller.plugins.html) but now am using version two and I can't find any examples of how you write a custom error handler.
In my instance I am writing a REST server and would like to throw exceptions that correspond to particular HTTP error codes.
From what I can tell, it appears I might need to write my own custom version of Zend\Mvc\View\Http\ExceptionStrategy which is invoked by Zend\Mvc\View\Http\ViewManager