Added template code for display of error status