Account Aggregation Failure Notification

Quick Question: Is this a valid list of task status if a task fails: (Error, Terminated and Failed)?

If a task status has be compared with multiple status values, how can that be achieved? I did follow one of the posts below to send out failure notification but it quite did not work out.

Any suggestions?