# Enum error_code::ErrorCode

> A response error code. Clients branch on this, never on the message text.

`zaun_community_protocol::error_code::ErrorCode` · Enum

```rust
pub enum ErrorCode { … }
```

A response error code. Clients branch on this, never on the message text.

## Variants

### `BadRequest`

### `PayloadTooLarge`

### `UnsupportedVersion`

### `UnsupportedCommand`

### `UnsupportedFeature`

### `HelloRequired`

### `NotBound`

### `WrongCommunity`

### `HostNotAuthorized`

### `Forbidden`

### `PendingApproval`

### `Suspended`

### `AdmissionClosed`

### `NotFound`

### `Conflict`

### `InvalidSignature`

### `InviteInvalid`

### `SlowmodeActive`

### `RateLimited`

### `TimedOut`

### `Banned`

### `Busy`

### `ResyncRequired`

### `Internal`

## Methods

### `is_recorded`

```rust
pub const fn is_recorded(self) -> bool
```

Whether a response with this code is stored as the idempotency record: every
error except the transient ones, which may be retried with the same `request_id`.

## Trait implementations

`Clone`, `Copy`, `Debug`, `Deserialize<'de>`, `Eq`, `Hash`, `PartialEq`, `Serialize`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/error_code/enum.ErrorCode.html)
