'exit if status code is 401 or 403 or 404 or 200'

def test_status_code(self, httpresult):

    if (httpresult.status_code == 401):
        log.debug('Unauthorized    :    this    server    could    not    verify    that    you    are    authorized    to    access    the    document    you    requested.')
    elif (httpresult.status_code == 403):
        log.debug('Forbidden    :    Access    was    denied    to    this    resource.    Not    authorized    to    access    this    resource.')
    elif (httpresult.status_code == 404):
        log.debug('Not    Found    :    The    resource    could    not    be    found.')
    elif (httpresult.status_code == 200):
        return httpresult
    return False
