src/Blockade/Resolver/RedirectResolver.php
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);
    }
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);
    }
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 ) ; }
Create a response for XmlHttpRequests.

@param BlockadeException $exception The exception
@param Request           $request   The request that caused the exception
Create a response for XmlHttpRequests .