Skip to main content

Deny

Overview

The Deny policy action allows you to reject incoming requests to your endpoint.

Example

Use this action config in your Traffic Policy

# 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.

Reference

Supported Directions

  • Inbound

Configuration

Type
deny
Parameter Description
status_codeintThe status code of the response. If not specified, 999 will be used.