<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ require_once 'processorFactory.php'; $processorFactory = new \Magento\Framework\Error\ProcessorFactory(); $processor = $processorFactory->createProcessor(); $response = $processor->process404(); $response->sendResponse();