---
title: RejectCode enum | Wartiva GraphQL API
description: RejectCode specifies the specific ICMP or ICMPX error code to return when rejecting a packet. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/reject-code.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL enum

# `RejectCode` enum

RejectCode specifies the specific ICMP or ICMPX error code to return when rejecting a packet.

## Values

| Enum Value | Description |
|---|---|
| `ROUTE_UNREACHABLE` | Indicates that there is no route to the destination network or host. |
| `PORT_UNREACHABLE` | Indicates that the destination port is unreachable (e.g., no application listening). |
| `HOST_UNREACHABLE` | Indicates that the destination host is unreachable. |
| `ADMIN_PROHIBITED` | Indicates that the communication is administratively prohibited by a firewall. |

## 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
"ROUTE_UNREACHABLE"

```

---

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