Add custom 500 and 404 pages.