AnsweredAssumed Answered

Is it possible to check the request header value in Vsi?

Question asked by sharath.kumar on Feb 17, 2016



We have a REST service in the form v1/getProduct/{objectId}. I need to return 200/400/401/403 mock responses depending on certain criteria.


I have a scenario where I need to mock 401/403 response based on the request header value. Is it possible to check the header value in Vsi?

In VSM I found 'Ensure HTTP Header contains expression' assertion option. But I don't know how to route to 401/403 response if this condition is met. Is it possible?


Please advice.