()
return threadData.lastHTTPError and threadData.lastHTTPError[0] == threadData.lastRequestUID
Returns True if the last web request resulted in an errornous HTTP code (like 500)
Returns True if the last web request resulted in an errornous HTTP code (like 500)
Returns True if the last web request resulted in an errornous HTTP code ( like 500 )
def wasLastResponseHTTPError():
    """
    Returns True if the last web request resulted in an errornous HTTP code (like 500)
    """

    threadData = getCurrentThreadData()
    return threadData.lastHTTPError and threadData.lastHTTPError[0] == threadData.lastRequestUID
def wasLastResponseHTTPError ( ) : threadData = getCurrentThreadData ( ) return threadData . lastHTTPError and threadData . lastHTTPError [ 0 ] == threadData . lastRequestUID