def get_status_message(self):
        if self.status:
            if self.status < 400:
                return "ok ({0})".format(self.status)
            elif self.status == 404:
                return "not found (404)"
            else:
                return "error (status={0})".format(self.status)
        elif self.is_timeout:
            return "error (timeout)"
        elif self.exception:
            return "error ({0}): {1}".format(self.exception.type_name,
                    self.exception.message)
        else:
            return "error"
dataset/ETHPy150Open mtlevolio/pylinkchecker/pylinkchecker/models.py/SitePage.get_status_message/original