'Get the item status'

def get_status(self):

    reason = ''
    if self.is_failed():
        try:
            for p in self.contract.get_paramlist():
                if (p.name.lower() == 'returncode'):
                    reason = ('    :    ' + p.value.value)
                    break
        except:
            pass
    return (self.status + reason)
