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

def wasLastResponseHTTPError ( ) : threadData = getCurrentThreadData ( ) return ( threadData . lastHTTPError and ( threadData . lastHTTPError [ 0 ] == threadData . lastRequestUID ) )
returns true if the last web request resulted in an errornous http code .