Skip to main content
StateSet uses conventional HTTP response codes and provides detailed error messages to help you quickly identify and resolve issues.

🚨 Error Response Format

All errors follow a consistent JSON structure:

Error Object Fields

📊 HTTP Status Codes

🔍 Error Types

Authentication Errors

Occur when API keys are missing, invalid, or lack permissions.
  • api_key_missing - No API key provided
  • invalid_api_key - API key is malformed or doesn’t exist
  • api_key_expired - API key has expired
  • api_key_revoked - API key has been revoked
  • insufficient_permissions - API key lacks required permissions

Invalid Request Errors

Occur when request parameters are invalid or missing.
  • parameter_missing - Required parameter not provided
  • parameter_invalid - Parameter value is invalid
  • parameter_unknown - Unknown parameter provided
  • request_invalid - Request body is malformed
  • idempotency_key_in_use - Idempotency key already used

Rate Limit Errors

Occur when you exceed API rate limits.
Response headers include:

API Errors

Occur due to problems on StateSet’s servers.

💻 Error Handling Examples

🔄 Retry Strategy

Implement exponential backoff with jitter for transient errors:

🛡️ Idempotency

Prevent duplicate operations using idempotency keys:

📈 Common Error Scenarios

Insufficient Funds

Invalid Address

Compliance Block

🔍 Debugging Tips

1. Use Request IDs

Always log the request_id for support inquiries:

2. Enable Debug Mode

Get detailed request/response logs:

3. Check Status Page

Monitor API health at status.stateset.com

4. Use Test Mode

Test error scenarios safely:

📊 Error Monitoring

Set up proper error tracking:

🆘 Getting Help

Error Reference

Complete list of all error codes

Support Portal

Contact support with request IDs

Status Page

Check current API status

Discord Community

Get help from the community
Last modified on August 31, 2026