> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# WebSocketCloseCode

## Values

**`CLOSE_NORMAL`** `1000`

Normal connection closure.

---

**`CLOSE_GOING_AWAY`** `1001`

Endpoint left (browser tab closing).

---

**`CLOSE_PROTOCOL_ERROR`** `1002`

Endpoint received a malformed frame.

---

**`CLOSE_UNSUPPORTED`** `1003`

Endpoint received an unsupported frame.

---

**`CLOSED_NO_STATUS`** `1005`

Expected close status, received none.

---

**`CLOSE_ABNORMAL`** `1006`

No close code frame has been received.

---

**`CLOSE_UNSUPPORTED_PAYLOAD`** `1007`

Endpoint received inconsistent message.

---

**`CLOSE_POLICY_VIOLATION`** `1008`

Received message violates endpoint policy.

---

**`CLOSE_TOO_LARGE`** `1009`

Too big frame.

---

**`CLOSE_MANDATORY_EXTENSION`** `1010`

Client wanted an extension which server does not negotiate.

---

**`CLOSE_SERVER_ERROR`** `1011`

Internal server error while operating.

---

**`CLOSE_SERVICE_RESTART`** `1012`

Server/service is restarting.

---

**`CLOSE_TRY_AGAIN_LATER`** `1013`

Temporary server condition forced blocking the client's request.

---

**`CLOSE_BAD_GATEWAY`** `1014`

Server acting as gateway received an invalid response.

---

**`CLOSE_TLS_FAIL`** `1015`

Failed to perform a TLS handshake.

---