For a REST call I am getting response back. I am getting response as:
call_name response_code OK
Now I want to give an if condition if my response code is either 200 or 201. So what is the regex pattern that I should use?
Example:
response.body = getOtp 200 OK
if(response.body.match()) {
console.log("hello");
}