Added custom declarations for error pages