'Return the alert status relative to the web/url scan return value.'

def get_web_alert(self, web, header='', log=False):

    if (web['status'] is None):
        return 'CAREFUL'
    elif (web['status'] not in [200, 301, 302]):
        return 'CRITICAL'
    elif ((web['rtt_warning'] is not None) and (web['elapsed'] > web['rtt_warning'])):
        return 'WARNING'
    return 'OK'
