Customizing pipelines to achieve a custom 404 page