Respect the configuration of custom error pages for 404 events.