title: Zend Framework 1.12 plugin for checking "Authorization" header
body: <p>I'm writing REST api using Zend Framework 1.12. I want to check "Authorization" header in controller plugin.</p>
  
  <p>I put code in the preDispatch action of the plugin </p>
  
  <pre><code>$authorizationHeader    =   $request-&gt;getHeader('Authorization');
  if(empty($authorizationHeader)) {
      $this-&gt;getResponse()-&gt;setHttpResponseCode(400);
      $this-&gt;getResponse()-&gt;setBody('Hello');
      die(); //It doesn't work
  }
  </code></pre>
  
  <p>The problem is that after it controller's action is still being called. I tried 'die()', 'exit'. My question is how to return response from plugin and do not call controller's action.</p>