Error Codes
The Reevit API uses conventional HTTP response codes to indicate the success or failure of an API request.HTTP Status Codes
Error Response Format
All errors return a consistent JSON structure:Common Error Codes
Authentication Errors
Payment Errors
Connection Errors
Subscription Errors
Validation Errors
Rate Limiting
Rate limit headers are included in responses:
X-RateLimit-Limit: Maximum requests per windowX-RateLimit-Remaining: Remaining requests in windowX-RateLimit-Reset: Unix timestamp when limit resets
Handling Errors
Best Practices
- Always check the HTTP status code before parsing the response body
- Log error responses for debugging and monitoring
- Implement retry logic for 5xx errors and rate limits
- Use idempotency keys to safely retry failed requests
- Handle specific error codes to provide better user feedback

