concrete/src/Http/Middleware/OAuthErrorMiddleware.php
public function process(Request $request, DelegateInterface $frame)
    {
        try {
            // Try returning the response normally
            return $frame->next($request);
        } catch (OAuthServerException $e) {
            // Generate an error based on the exception
            return $e->generateHttpResponse(new Response());
        }
    }
public function process(Request $request, DelegateInterface $frame)
    {
        try {
            // Try returning the response normally
            return $frame->next($request);
        } catch (OAuthServerException $e) {
            // Generate an error based on the exception
            return $e->generateHttpResponse(new Response());
        }
    }
public function process ( Request $ request , DelegateInterface $ frame ) { try { // Try returning the response normally return $ frame -> next ( $ request ) ; } catch ( OAuthServerException $ e ) { // Generate an error based on the exception return $ e -> generateHttpResponse ( new Response ( ) ) ; } }
Process the request and return a PSR7 error response if needed

@param \Symfony\Component\HttpFoundation\Request $request
@param DelegateInterface $frame
@return \Psr\Http\Message\ResponseInterface
Process the request and return a PSR7 error response if needed