HyperXServerException. Startup failures are separated into HyperXInitializationException.
Basic Pattern
Useful Fields
| Field | Use |
|---|---|
ErrorCode | Stable code for branching in game logic. |
ServerMessage | Human-readable server message. |
StatusCode | HTTP status code. |
TraceId | ID used to connect the request to server logs. |
RequestId | ID for one request. |
Context | Extra values such as filename, table key, or provider. |
TraceId and RequestId in support logs.
Common Cases
| Situation | Example Code | Recommended Handling |
|---|---|---|
| Login required | UNAUTHORIZED | Refresh the session, then return to login if refresh fails. |
| Missing file | STORAGE_OBJECT_NOT_FOUND | Use a default asset or check Console upload state. |
| Invalid data | VALIDATION_ERROR | Match the JSON payload to the Console schema. |
| Invalid social token | INVALID_PROVIDER_TOKEN | Get a fresh token from the provider SDK and retry login. |
| Muted chat sender | CHAT_SENDER_MUTED | Disable chat input and show a muted-state message. |
Download Errors
PublicStorage.Get(...) returns a progress object first. Handle the actual failure when awaiting progress.File.