Error Response Format
All error responses follow this structure:Success Response Format
For comparison, successful responses look like this:Paginated Response Format
Paginated endpoints return data in this format:Error Codes Reference
Authentication & Authorization
AccessDenied
AccessDenied
HTTP Status: 403 ForbiddenDescription: You don’t have permission to access this resource or perform this action.Common causes:
- API key lacks required scope
- Trying to access another user’s resources
- Account restrictions or suspensions
- Store-level permissions insufficient
- Check your API key has the necessary scopes
- Verify you’re accessing resources you own
- Check account status in dashboard
- Request additional permissions if needed
BadToken
BadToken
HTTP Status: 401 UnauthorizedDescription: The provided authentication token is invalid, expired, or malformed.Common causes:
- Expired API key
- Revoked API key
- Malformed Authorization header
- API key not found
- Generate a new API key from dashboard
- Verify Authorization header format:
Bearer YOUR_API_KEY - Check for whitespace or special characters in token
- Ensure API key hasn’t been revoked
TwoFactorRequired
TwoFactorRequired
HTTP Status: 403 ForbiddenDescription: Two-factor authentication is required for this action.Common causes:
- Sensitive operation requires 2FA
- Account security policy enforced
- Administrative action attempted
- Complete 2FA challenge
- Enable 2FA on your account
- Use session-based authentication for sensitive operations
OAuthLoginRequired
OAuthLoginRequired
HTTP Status: 401 UnauthorizedDescription: OAuth authentication is required for this endpoint.Common causes:
- Endpoint requires user session, not API key
- OAuth flow not completed
- Session expired
- Complete OAuth authentication flow
- Use correct authentication method for endpoint
- Check if endpoint supports API key authentication
Validation & Input Errors
ValidationError
ValidationError
HTTP Status: 400 Bad RequestDescription: The request contains invalid or missing parameters.Common causes:
- Missing required fields
- Invalid data types
- Values outside allowed ranges
- Invalid format (email, URL, UUID, etc.)
- Business rule violations
- Check request body against API documentation
- Validate data types and formats
- Ensure all required fields are present
- Review error details for specific field errors
BadCaptcha
BadCaptcha
HTTP Status: 400 Bad RequestDescription: CAPTCHA verification failed.Common causes:
- Invalid CAPTCHA response
- Expired CAPTCHA token
- CAPTCHA not solved
- Bot detection triggered
- Request new CAPTCHA challenge
- Ensure user completes CAPTCHA
- Check CAPTCHA token hasn’t expired
- Verify CAPTCHA integration is correct
Resource Errors
NotFound
NotFound
HTTP Status: 404 Not FoundDescription: The requested resource does not exist.Common causes:
- Invalid resource ID
- Resource was deleted
- Typo in endpoint URL
- Resource belongs to different store
- Verify resource ID is correct
- Check resource hasn’t been deleted
- Ensure you’re querying the right store
- Validate endpoint URL
ObjectConflict
ObjectConflict
HTTP Status: 409 ConflictDescription: The operation conflicts with an existing resource.Common causes:
- Duplicate unique field (email, slug, etc.)
- Resource already exists
- Concurrent modification conflict
- Business rule prevents operation
- Use unique values for unique fields
- Check if resource already exists
- Implement optimistic locking for concurrent updates
- Review business rules
Rate Limiting
RateLimited
RateLimited
HTTP Status: 429 Too Many RequestsDescription: You have exceeded the API rate limit.Common causes:Example:
- Too many requests in short time period
- Burst limit exceeded
- Account-level rate limit reached
- Implement exponential backoff
- Respect
Retry-Afterheader - Cache frequently accessed data
- Optimize API calls to reduce frequency
- Contact support for higher limits
Business Logic Errors
ProductUnavailable
ProductUnavailable
NotEnoughFunds
NotEnoughFunds
HTTP Status: 400 Bad RequestDescription: Insufficient funds in customer balance.Common causes:
- Customer balance too low
- Attempting to use balance payment method
- Withdrawal amount exceeds available balance
- Check customer balance
- Request customer add funds
- Use alternative payment method
- Reduce order amount
VerificationRequired
VerificationRequired
HTTP Status: 403 ForbiddenDescription: Account verification is required before proceeding.Common causes:
- Email not verified
- Identity verification pending
- Payment method requires verification
- Account limits require verification
- Complete email verification
- Submit required verification documents
- Verify payment methods
- Contact support for verification status
Feature & Upgrade Errors
FeatureUnavailable
FeatureUnavailable
UpgradeRequired
UpgradeRequired
HTTP Status: 402 Payment RequiredDescription: Your current plan does not support this operation.Common causes:
- Plan limits exceeded
- Feature requires higher plan tier
- Usage quota exhausted
- Upgrade to higher plan tier
- Review current plan limits
- Reduce usage to stay within limits
- Contact sales for enterprise options
UnsupportedRequest
UnsupportedRequest
HTTP Status: 400 Bad RequestDescription: The requested operation is not supported.Common causes:
- Deprecated API version
- Invalid operation combination
- Unsupported payment method
- Unsupported currency
- Check API documentation for supported operations
- Use current API version
- Verify operation compatibility
- Check supported payment methods/currencies
File & Upload Errors
UploadFailed
UploadFailed
HTTP Status: 400 Bad RequestDescription: File upload failed.Common causes:
- File too large
- Invalid file type
- Corrupted file
- Network interruption
- Storage quota exceeded
- Check file size limits
- Verify file type is supported
- Ensure file is not corrupted
- Retry upload with stable connection
- Check storage quota
Server Errors
InternalServerError
InternalServerError
HTTP Status: 500 Internal Server ErrorDescription: An unexpected error occurred on the server.Common causes:
- Server-side bug
- Database connection issue
- External service failure
- Unexpected condition
- Retry the request after a short delay
- If problem persists, contact support
- Check status page for incidents
- Include error ID when contacting support
Always include the
errorId when reporting issues to support for faster resolution.HTTP Status Code Summary
| Status Code | Error Codes | Description |
|---|---|---|
| 400 | ValidationError, BadCaptcha, ProductUnavailable, NotEnoughFunds, UnsupportedRequest, UploadFailed | Bad Request - Invalid input |
| 401 | BadToken, OAuthLoginRequired | Unauthorized - Invalid or missing authentication |
| 402 | UpgradeRequired | Payment Required - Plan upgrade needed |
| 403 | AccessDenied, TwoFactorRequired, VerificationRequired, FeatureUnavailable | Forbidden - Insufficient permissions |
| 404 | NotFound | Not Found - Resource doesn’t exist |
| 409 | ObjectConflict | Conflict - Resource conflict |
| 429 | RateLimited | Too Many Requests - Rate limit exceeded |
| 500 | InternalServerError | Internal Server Error - Server-side issue |