Set StatusBadRequest if environment not correctly set
Change criterias for environment check to include check of API_USERID and API_USERPWD.
Set StatusBadRequest if environment not correctly set
Change criterias for environment check to include check of API_USERID and API_USERPWD.