Comprehensive guide to handling Galxe API errors, including error codes, response formats, and troubleshooting strategies
Status Code | Description | Common Causes |
---|---|---|
200 | Success | Request processed successfully |
400 | Bad Request | Invalid query syntax, missing required fields |
401 | Unauthorized | Missing or invalid access token |
403 | Forbidden | Insufficient permissions for requested resource |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server-side error, usually temporary |
502 | Bad Gateway | Service temporarily unavailable |
503 | Service Unavailable | Maintenance or high load |
AUTHENTICATION
)INVALID_TOKEN
- Invalid Access TokenTOKEN_REQUIRED
- Missing Access Tokenaccess-token
header in all API requests.
AUTHORIZATION
)PERMISSION_DENIED
- Insufficient PermissionsRATE_LIMIT
)QUOTA_EXCEEDED
- API Quota ExceededVALIDATION
)INVALID_ARGUMENT
- Invalid Input ParametersINVALID_ADDRESS
- Invalid Address Format0x
).
COMPLEXITY_LIMIT_EXCEEDED
- Query Too ComplexDEPTH_LIMIT_EXCEEDED
- Query Too DeepNOT_FOUND
)NOT_FOUND
- Resource Not FoundSPACE_NOT_FOUND
- Space does not exist or is not accessibleQUEST_NOT_FOUND
- Quest does not exist or is not accessibleCREDENTIAL_NOT_FOUND
- Credential does not exist or is not accessibleUSER_NOT_FOUND
- User does not exist or is not accessibleINTERNAL
)INTERNAL_ERROR
- Server IssuesUNAVAILABLE
)UNAVAILABLE
- Service Unavailableextensions.category
field to understand the type of error:
AUTHENTICATION
/AUTHORIZATION
- Fix token/permissions, don’t retryVALIDATION
- Fix request parameters, don’t retryRATE_LIMIT
- Implement backoff and retryNOT_FOUND
- Verify resource exists, don’t retryINTERNAL
/UNAVAILABLE
- Retry with backoffrequest_id
from error responses when contacting support for faster troubleshooting.
RATE_LIMIT
, INTERNAL
, and UNAVAILABLE
errors, implement exponential backoff:
Error Type | First Steps |
---|---|
Authentication | Verify access token is valid and properly set in headers |
Rate Limiting | Reduce request frequency, implement backoff logic |
Validation | Check parameter formats, data types, and required fields |
Not Found | Verify resource IDs and check permissions |
Server Errors | Retry after delay, check API status page |