> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockdb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# WSS Error Codes

> WebSocket close codes and connection troubleshooting for BlockDB streams.

### Close Codes

| Code | Name              | Meaning            | Action                                 |
| ---- | ----------------- | ------------------ | -------------------------------------- |
| 1000 | NORMAL\_CLOSURE   | Graceful shutdown  | Reconnect                              |
| 1001 | GOING\_AWAY       | Server restart     | Reconnect with backoff                 |
| 1008 | POLICY\_VIOLATION | Invalid auth/scope | Refresh token; verify scope            |
| 1011 | INTERNAL\_ERROR   | Server error       | Reconnect with jitter                  |
| 1013 | TRY\_AGAIN\_LATER | Backpressure       | Increase backoff; reduce subscriptions |

<Note>
  Use exponential backoff: 1s, 2s, 4s, 8s (max 30s)
</Note>
