Error Codes
SDK Error Codes
Returned by GameRebellion.GetLastError() or as return values from tracking methods.
| Code | Constant | Meaning | Resolution |
|---|---|---|---|
0 | GR_OK | Success | — |
-1 | GR_ERR_GENERIC | Native exception, missing plugin, or Editor stub | Check platform setup; expected in Editor |
-2 | GR_ERR_INVALID_ARGS | Missing required fields or invalid data | Check required fields on your event object |
-3 | GR_ERR_INVALID_STATE | SDK not initialized or not in Ready state | Call Initialize() first; check GetState() |
HTTP Response Codes (S2S API)
| Code | Meaning | Action |
|---|---|---|
200 | Event(s) accepted | Success |
400 | Invalid request body or missing required fields | Fix the request payload |
401 | Invalid or missing API key | Check X-API-Key header |
403 | API key revoked or insufficient permissions | Generate a new key in the Platform |
429 | Rate limit exceeded | Back off and retry; check rate limit headers |
500 | Server error | Retry with exponential backoff |