protected function createXmlHttpResponse(BlockadeException $exception, Request $request)
    {
        if ($exception instanceof AuthenticationException || $exception instanceof CredentialsException) {
            return new Response('Authentication required', Response::HTTP_UNAUTHORIZED);
        }

        return new Response('Access denied', Response::HTTP_FORBIDDEN);
    }