public function detectAccessDenied(MvcEvent $event)
    {
        $response = $event->getResponse();
        if ($response->getStatusCode() == 403) {
            $event->setError('Access Denied');
            $event->stopPropagation(true);
        }
    }