How to handle errors when using Sim APIs
"error"
or "message"
depending on the type of error.HTTP Status | Description | Troubleshooting |
---|---|---|
401 | Invalid or missing API key | Check that you’re including the correct API key in the X-Sim-Api-Key header |
400 | Malformed request | Verify the address format and other parameters in your request |
404 | Resource not found | Verify the endpoint URL and resource identifiers |
429 | Too many requests | Implement backoff strategies and consider upgrading your plan if you consistently hit limits |
500 | Server-side error | Retry the request after a short delay; if persistent, contact support |