Display error pages only if debug mode is disabled