core-bundle/src/Resources/contao/pages/PageError404.php
public function getResponse()
	{
		/** @var PageModel $objPage */
		global $objPage;

		$obj404 = $this->prepare();
		$objPage = $obj404->loadDetails();

		/** @var PageRegular $objHandler */
		$objHandler = new $GLOBALS['TL_PTY']['regular']();

		return $objHandler->getResponse($objPage)->setStatusCode(404);
	}
public function getResponse()
	{
		/** @var PageModel $objPage */
		global $objPage;

		$obj404 = $this->prepare();
		$objPage = $obj404->loadDetails();

		/** @var PageRegular $objHandler */
		$objHandler = new $GLOBALS['TL_PTY']['regular']();

		return $objHandler->getResponse($objPage)->setStatusCode(404);
	}
public function getResponse ( ) { /** @var PageModel $objPage */ global $ objPage ; $ obj404 = $ this -> prepare ( ) ; $ objPage = $ obj404 -> loadDetails ( ) ; /** @var PageRegular $objHandler */ $ objHandler = new $ GLOBALS [ 'TL_PTY' ] [ 'regular' ] ( ) ; return $ objHandler -> getResponse ( $ objPage ) -> setStatusCode ( 404 ) ; }
Return a response object

@return Response
Return a response object