Error Response Format
All API errors follow a consistent JSON format:Error Fields
statusCode
(integer)HTTP status code (400, 401, 403, 429, 500, etc.)
message
(string)Human-readable error description
error
(string)Error category/type
timestamp
(string)When the error occurred (ISO 8601 UTC)
path
(string)API endpoint that generated the error
HTTP Status Codes
400 Bad Request
Invalid request parameters or malformed request.limit
parameter outside 1-100 rangeminImportance
parameter outside 1-10 range- Invalid cursor format
- Malformed query parameters
401 Unauthorized
Missing or invalid API key.- Missing
X-API-Key
header - Invalid API key format (doesn’t start with
byul_v2_
) - Expired or revoked API key
402 Payment Required
Plan expired or payment issue.- Update payment method in dashboard
- Upgrade to a paid plan
- Contact support for billing issues
403 Forbidden
Feature not available on current plan.- Upgrade to Pro or Enterprise plan
- Check pricing page for feature availability
429 Too Many Requests
Rate limit exceeded.- Test: 30 requests/minute
- Starter: 60 requests/minute
- Pro/Enterprise: 120 requests/minute
500 Internal Server Error
Server-side error.- Check status page
- Retry with exponential backoff
- Contact support if persistent