AnsweredAssumed Answered

Dynamic HTTP-Response-Code & HTTP-Response-Code-Text to update

Question asked by swathib on Jul 10, 2018
Latest reply on Jul 11, 2018 by swathib

I'm trying to implement a virtual service. Taking consideration of one field from request, Response Status has to be updated as Response.Status.BAD_REQUEST, Response.Status.FORBIDDEN, Response.Status.UNAUTHORIZED etc.

 

Request:

{"Id":"XXXX","morlevel":"abc","vid":"0.3"}

 

Here depends on vid value, Response status has to be updated.

If vid > 1 & vid <1.5, No response from service but Response status has to be updated as

Response.Status.BAD_REQUEST. 

Please find screenshot for the same. Really appreciate your help!!

Attachments

Outcomes