How to get "Target Response" scoped variables in case of target exceeding timeout?

I'm trying to access the target variables (like target.host, target.url) where the scope begins at Target Response. This is working when the proxy executes normally and when backend sends some response back.

I want to access these variables in case when target exceeds the timeout. As far as I've seen, these variables are not populated when timeout exceeds and returns a 504 response. I need the target.host value in this case for logging purposes.

Is there a way to access these in such cases?

0 0 65
0 REPLIES 0