def getLastRequestHTTPError():
 threadData = getCurrentThreadData()
 return (threadData.lastHTTPError[1] if threadData.lastHTTPError else None)

def getLastRequestHTTPError ( ) : threadData = getCurrentThreadData ( ) return ( threadData . lastHTTPError [ 1 ] if threadData . lastHTTPError else None )
returns last http error code .