original_string: public function detectAccessDenied(MvcEvent $event)
      {
          $response = $event->getResponse();
          if ($response->getStatusCode() == 403) {
              $event->setError('Access Denied');
              $event->stopPropagation(true);
          }
      }
code: public function detectAccessDenied(MvcEvent $event)
      {
          $response = $event->getResponse();
          if ($response->getStatusCode() == 403) {
              $event->setError('Access Denied');
              $event->stopPropagation(true);
          }
      }
code_tokens: public function detectAccessDenied ( MvcEvent $ event ) { $ response = $ event -> getResponse ( ) ; if ( $ response -> getStatusCode ( ) == 403 ) { $ event -> setError ( 'Access Denied' ) ; $ event -> stopPropagation ( true ) ; } }
docstring: If response status code is 403 set error state and stop event propagation
  
  @param MvcEvent $event
docstring_tokens: If response status code is 403 set error state and stop event propagation