Added custom error pages for 404s and 500s.