Added custom error page processing.