How to validate the environment variable value

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.

Test case: when invalid/wrong subscription key is present as an environment variable value, the response with error message should be returned

Details (like screenshots):

How I found the problem:

I’ve already tried: