zendframework/zf2 — pull request #851 by weierophinney (2012-02-28 06:22:06+00:00)
Title: [#1] Added ability to inject reason for triggering 404

- if displayNotFoundReason is enabled, will inject a "reason" variable
into the 404 view model returned, with one of the following constant
values:
- Application::ERROR_CONTROLLER_CANNOT_DISPATCH (controller cannot
dispatch the request)
- Application::ERROR_CONTROLLER_NOT_FOUND (controller class does not
exist)
- Application::ERROR_CONTROLLER_INVALID (controller requested is not
dispatchable)
- Application::ERROR_ROUTER_NO_MATCH (routing returned no match, or no
controller in the matches)