Accessing a non-existent php file on the web returns File not found

When accessing a non-existent PHP file on the network, it returns “File not found”. For example, if the file “2.php” does not exist, it displays the “File not found” error! However, when accessing “2.html”, it returns the normal Hestia error page. Why is it not showing the default Hestia 404 page? Where do I need to set it so that it displays the default Hestia error page? Thank you!