prepare for user defined error pages
Implement user defined error pages