Hi Team, is there a way to use response templatin...
# help
Hi Team, is there a way to use response templating in the response status like below
Copy code
  "request": {
    "method": "GET",
    "urlPath": "/test"
  "response": {
    "status": {{request.headers.headerName}},
    "bodyFileName": "response.json",
    "transformerParameters": {
      "disableBodyFileTemplating": true
I am getting below error if I add "status": {{request.headers.headerName}} or "status": "{{request.headers.headerName}}" Invocation of init method failed.
I have a feeling that handlebars templates are not allowed in the status field
👍 1
Thanks @Lee Turner changed the approach but this lead to create 100 files and mapping , do you think is there any other way to over come this ?
Not sure to be honest. What is it you are trying to achieve ? You want the same request and response body but with different response statuses ?
I have almost 10 status code with different body so was thinking to use response template to Create a single file