res object is available inside the vars, assertions, scripting, and testing contexts. Use it to extract values from the response body, headers, and status.
The res object is only available in the context of a request.
You can also query nested response data using response queries.