PHPDaemon\Applications\FileReaderRequest::fileNotFound PHP Method

fileNotFound() public method

Send header 404 or, if not possible already, response "File not found"
public fileNotFound ( )
    public function fileNotFound()
    {
        try {
            $this->header('404 Not Found');
            $this->header('Content-Type: text/html');
        } catch (\PHPDaemon\Request\RequestHeadersAlreadySent $e) {
        }
        $this->out('File not found.');
    }