Error types
| Error | When |
|---|---|
TokenParseError | Token is malformed or signature is invalid |
TokenExpiredError | Token expires_at is in the past |
HttpError | Server returned a non-2xx status |
NetworkError | Fetch failed (DNS, timeout, no connection) |
CodecError | msgpack decode or schema validation failed |
TransportError | WebSocket error |
Handling errors
All errors areData.TaggedError from Effect, matchable with Effect.catchTag: