Error Codes
Overview
This page documents error codes returned by the Build a Doc connector and how to resolve them.
HTTP Status Codes
Client Errors (4xx)
| Code | Name | Description | Resolution |
|---|---|---|---|
| 400 | Bad Request | Invalid request format or parameters | Check request structure and parameter values |
| 401 | Unauthorised | Invalid or missing API key | Verify API key is correct and active |
| 403 | Forbidden | Subscription lacks permission | Check subscription plan and feature access |
| 404 | Not Found | Resource or action not found | Verify action name and endpoint |
| 429 | Too Many Requests | Rate limit exceeded | Reduce request frequency; implement backoff |
Server Errors (5xx)
| Code | Name | Description | Resolution |
|---|---|---|---|
| 500 | Internal Server Error | Unexpected server error | Retry; contact support if persistent |
| 502 | Bad Gateway | Gateway/proxy error | Retry after brief delay |
| 503 | Service Unavailable | Service temporarily unavailable | Retry with exponential backoff |
| 504 | Gateway Timeout | Request timed out | Retry; consider smaller documents |
Authentication Errors
401 - Invalid API Key
Message: Invalid API key or API key not found
Causes:
- API key is missing
- API key is incorrect (typo or truncated)
- API key has been revoked
Resolution:
- Copy API key directly from portal (don’t type manually)
- Verify no extra spaces before or after the key
- Confirm key is active in the portal
- Create a new key if necessary
401 - Expired API Key
Message: API key expired
Causes:
- Key has been revoked
- Subscription has lapsed
Resolution:
- Check key status in portal
- Verify subscription is active
- Create new key if needed
Authorisation Errors
403 - Feature Not Available
Message: Feature not available for your subscription
Causes:
- Action requires higher tier plan
- Feature is not included in current plan
Resolution:
- Review your subscription plan features
- Upgrade plan if necessary
403 - Quota Exceeded
Message: Monthly quota exceeded
Causes:
- Document generation quota reached
- API call limit reached
Resolution:
- Wait for quota reset (next billing cycle)
- Upgrade to higher plan
Rate Limiting Errors
429 - Rate Limit Exceeded
Message: Rate limit exceeded. Retry after X seconds
Causes:
- Too many requests in short time period
- Burst limit exceeded
Resolution:
- Implement retry logic with exponential backoff
- Add delays between requests
- Consider batch processing at lower rate
- Upgrade plan for higher limits
Document Processing Errors
Document Invalid
Message: Document is invalid or corrupted
Causes:
- File is corrupted
- File is not the declared format
- File is password-protected
Resolution:
- Verify file opens correctly locally
- Ensure correct file format
- Remove password protection
Template Error
Message: Template syntax error at position X
Causes:
- Invalid template expression
- Unclosed tags
- Malformed syntax
Resolution:
- Check template syntax
- Enable inline errors for debugging
- Use template preview in Word Add-in
Data Source Error
Message: Invalid data source format
Causes:
- JSON/XML/CSV syntax error
- Mismatched data source format declaration
Resolution:
- Validate data source format
- Ensure format declaration matches actual format
Timeout Errors
Request Timeout
Message: Request timed out
Causes:
- Document too large
- Complex template processing
- High service load
Resolution:
- Reduce document complexity
- Split large documents
- Retry at different time
Error Response Format
Error responses include:
{ "error": { "code": "ErrorCode", "message": "Human-readable error description", "details": [ { "code": "DetailCode", "message": "Specific detail" } ] }}