Access connection status for TCP request with function

Is there a way to access the connection status of a TCP request node form within a function node?
I'm aware of the Status node, but in my setup it would be better if this could be checked in the function.

You cannot access the status property of another node directly.

If you use Status node to feed the status to a Change node that sets a flow context property with the status value, you can then access that flow context property from your Function node.