---
title: RejectType enum | Wartiva GraphQL API
description: RejectType specifies the type of rejection message to send for a rejected packet. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/reject-type.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL enum

# `RejectType` enum

RejectType specifies the type of rejection message to send for a rejected packet.

## Values

| Enum Value | Description |
|---|---|
| `ICMP` | Reject with an ICMP (Internet Control Message Protocol) error message. |
| `TCP_RST` | Reject with a TCP RST (reset) packet, used for TCP connections. |
| `ICMPX` | Reject with an ICMPX error message (IPv6 equivalent of ICMP). |

## Used by

- [`RejectExpression`](https://wartiva.com/api-docs/types/reject-expression.html) type: RejectExpression represents an nftables expression for rejecting a packet.

## Example

### Example

```json
"ICMP"

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
