src/Mvc/Listener/AccessDeniedStrategy.php
public function detectAccessDenied(MvcEvent $event)
    {
        $response = $event->getResponse();
        if ($response->getStatusCode() == 403) {
            $event->setError('Access Denied');
            $event->stopPropagation(true);
        }
    }
public function detectAccessDenied(MvcEvent $event)
    {
        $response = $event->getResponse();
        if ($response->getStatusCode() == 403) {
            $event->setError('Access Denied');
            $event->stopPropagation(true);
        }
    }
public function detectAccessDenied ( MvcEvent $ event ) { $ response = $ event -> getResponse ( ) ; if ( $ response -> getStatusCode ( ) == 403 ) { $ event -> setError ( 'Access Denied' ) ; $ event -> stopPropagation ( true ) ; } }
If response status code is 403 set error state and stop event propagation

@param MvcEvent $event
If response status code is 403 set error state and stop event propagation