Allow 404 handler to be customized