Implement custom error pages.