In HTTP scripts you can now use
return
tag to return HTTP response:{% json res %}
{
"body": {
"status": "ok"
},
"code": 200
}
{% endjson %}
{% return res %}
Old way of returning response (using variable called
response
to set script HTTP response) is still supported and can be used alternatively with return
tag