Add generator for error pages