Tested in Nginx 1.10 / PHP-FPM 5.6
By default php-fpm shows “File not found” when someone try to request a php file that doesn’t exist. If you use php-fpm in nginx with fastcgi for using custom errors just configure this in nginx.conf:
fastcgi_intercept_errors on;