Optimize Error Page Creation