zendframework/zf2 — pull request #3944 by superdweebie (2013-03-04 01:17:22+00:00)
Title: Enable ExceptionStrategy to return json

Modifies the ExceptionStrategy to return a JsonViewModel if the Accept `applicaton/json` header is set. This means when an exception occurs on something such as a rest service, the client will be returned an exception that can be consumed, rather than a html document.