added dynamic error pages