HTTP Status Codes
Code | Status | Description |
---|---|---|
200 | OK | Request successful |
201 | Created | Resource created successfully |
400 | Bad Request | Invalid parameters or request format |
401 | Unauthorized | Invalid or missing API key |
403 | Forbidden | Insufficient permissions for this action |
404 | Not Found | Resource not found |
409 | Conflict | Resource conflict (e.g., duplicate order) |
422 | Unprocessable Entity | Validation failed |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server error |
503 | Service Unavailable | No providers available to handle the request |
Error Response Format
All error responses follow a consistent format:Common Error Scenarios
400 Bad Request
- Invalid parameters: Missing required fields, invalid formats
- Unsupported combinations: Token/currency pairs not supported
- Amount validation: Amounts outside provider limits
- Provider issues: Provider not found or misconfigured
503 Service Unavailable
- No provider available: When no providers can handle the specific request
- Service temporarily unavailable: During maintenance or high load
- Geographic restrictions: Service not available in your region
Handling Service Unavailability
When you receive a 503 error:- Check request parameters: Verify token, amount, and currency combinations
- Try different amounts: Some providers have minimum/maximum limits
- Retry later: Provider availability may change over time
- Contact support: If the issue persists, reach out to our team
Getting Help
If you’re experiencing persistent errors:- Check the error response for specific details
- Review our documentation for endpoint requirements
- Join our developer community on Telegram
- Contact support at [email protected]
- Report issues on GitHub
When reporting errors, please include the complete error response, request details, and your API key (with sensitive parts redacted).