Deny
Overview
The Deny policy action allows you to reject incoming requests to your endpoint.
Example
Use this action config in your Traffic Policy
- YAML
- JSON
# snippet
---
actions:
- type: "deny"
config:
status_code: 404
// snippet
{
"actions": [
{
"type": "deny",
"config": {
"status_code": 404
}
}
]
}
Behavior
When this action is executed, the upstream server is never reached and a response is immediately made.
If this action is executed, no further actions or policy rules in the policy configuration will be executed.