I'm currently trying to customize the Status code in a WireMock mapping.
I want to do something similar to this.
"response" : {
"status" :"{{#if true}}200{{/if}}{{else}} 204 {{/if}}",
...
...
...
}
When doing so, I get the following error.
Cannot deserialize value of type `int` from String "{{#if true}}200{{/if}}{{else}} Not found {{/if}}": not a valid `int`
Is it possible to use the response templating syntax in the status code field? if not, is there a way to customize the response of this field?