title: How to throw 404 exceptions in Zend Framework
body: <p>I'm trying to use the Zend_Controller_Plugin_ErrorHandler to handle my error 404 cases. 
  According to the <a href="http://framework.zend.com/manual/en/zend.controller.plugins.html#zend.controller.plugins.standard.errorhandler" rel="noreferrer">doc</a>, the plugin has constants that one can use to match Exception types and handle them accordingly. e.g.</p>
  
  <pre><code>switch ($errors-&gt;type) {
          case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
          case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
          case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
              // 404 error -- controller or action not found
  </code></pre>
  
  <p>Does anyone know how to create exceptions of these types specifically? </p>