Error Response Format
All BoostGPT SDK methods return responses in this format:Check for Errors
Always check theerr property before using response:
Common Errors
Authentication Errors
.env file
Rate Limit Errors
Invalid Bot ID
Model Errors
Retry Logic
Implement exponential backoff for transient errors:Try-Catch with Async/Await
Wrap SDK calls in try-catch for network errors:Error Logging
Log errors for debugging:User-Friendly Error Messages
Map technical errors to user-friendly messages:Next Steps
Rate Limits
Understand API rate limits