# How to validate the environment variable value

**URL:** <https://community.postman.com/t/how-to-validate-the-environment-variable-value/27826>\
**Category:** Help Hub\
**Created:** [September 14, 2021, 1:47pm UTC](https://community.postman.com/t/how-to-validate-the-environment-variable-value/27826 "2021-09-14T13:47:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spaceflight-enginee3](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@spaceflight-enginee3](https://community.postman.com/u/spaceflight-enginee3)\
**Post date:** [September 14, 2021, 1:47pm UTC](https://community.postman.com/t/how-to-validate-the-environment-variable-value/27826/1 "2021-09-14T13:47:48Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) 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_:

 ![Untitled1](https://us1.discourse-cdn.com/getpostman/original/2X/4/490373b1b62d76a65d6465360075e726a6483375.png)
