src/Http/ErrorHandling/Response/NotFoundHandler.php
private function generateNotFoundPlainResponse(ServerRequestInterface $request) : ResponseInterface
    {
        $response = ($this->responseFactory)()->withStatus(StatusCodeInterface::STATUS_NOT_FOUND);
        $response->getBody()
            ->write(\sprintf(
                "Encountered a 404 Error, %s doesn't exist",
                (string) $request->getUri()
            ));

        return $response;
    }
private function generateNotFoundPlainResponse(ServerRequestInterface $request) : ResponseInterface
    {
        $response = ($this->responseFactory)()->withStatus(StatusCodeInterface::STATUS_NOT_FOUND);
        $response->getBody()
            ->write(\sprintf(
                "Encountered a 404 Error, %s doesn't exist",
                (string) $request->getUri()
            ));

        return $response;
    }
private function generateNotFoundPlainResponse ( ServerRequestInterface $ request ) : ResponseInterface { $ response = ( $ this -> responseFactory ) ( ) -> withStatus ( StatusCodeInterface :: STATUS_NOT_FOUND ) ; $ response -> getBody ( ) -> write ( \ sprintf ( "Encountered a 404 Error, %s doesn't exist" , ( string ) $ request -> getUri ( ) ) ) ; return $ response ; }
Generates a plain text response indicating the request method and URI.
@param ServerRequestInterface $request
@return ResponseInterface
Generates a plain text response indicating the request method and URI .