How to get differnt HTTP-Response-Code in the VS Response
search cancel

How to get differnt HTTP-Response-Code in the VS Response

book

Article ID: 129068

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder) Service Virtualization

Issue/Introduction

Getting the responses, but wanted to parametrize the response code as well.

It is giving 200 always and wanted to check with 404 or other codes

Environment

All supported DevTest releases.

Cause

N/A

Resolution

Can do this from the Portal:

1. From the Portal choose Manage.
2. Choose Virtual Services.
3. Choose you virtual service you want to change the response code in.
4. On the right of the page choose Advance Mode and set to on.
5. Choose your specific transaction and then change the response Metadata to what you want the HTTP-Response-Code to be..