SupaProxyError
All non-ok responses throw aSupaProxyError:
Properties
| Property | Type | Description |
|---|---|---|
status | number | HTTP status code (e.g. 401, 404, 500) |
message | string | Error message from the API |
name | string | Always 'SupaProxyError' |
Common error codes
| Status | Meaning | Example message |
|---|---|---|
| 400 | Validation error | "name is required" |
| 401 | Not authenticated | "Not authenticated" |
| 403 | Not authorised | "Insufficient permissions" |
| 404 | Not found | "Workspace not found" |
| 409 | Conflict | "Channel already bound to another workspace" |
| 500 | Server error | "Internal server error" |
Error handling patterns
React hooks
AbortController
Cancelled requests do not throwSupaProxyError. They throw a native AbortError:
Known limitations
- No automatic retry logic
- No exponential backoff
- No 429 rate limit handling
- No request timeout configuration
- No response caching