Set Status Code
Adds or sets headers on the on the outgoing.
Configuration
The configuration shows how to configure the policy in the 'policies.json' document.
config/policies.json
{
"name": "my-set-status-outbound-policy",
"policyType": "set-status-outbound",
"handler": {
"export": "SetStatusOutboundPolicy",
"module": "$import(@zuplo/runtime)",
"options": {
"status": 200,
"statusText": "OK"
}
}
}
Read more about how policies work