Errors, limits, and recovery
Strict DOCX responses
Section titled “Strict DOCX responses”| Status | Meaning | Next action |
|---|---|---|
| 400 | Malformed input or unsupported culture | Correct JSON, multipart fields, or culture. |
| 401 | Missing/incorrect API key | Check the connection secret and header. |
| 408 | Cancellation or deadline | Reduce the operation and retry deliberately. |
| 413 | File, JSON, or control limit | Reduce the input. |
| 422 | Schema or binding failure | Use code and errors to locate the problem. |
| 429 | Shared rate limit exhausted | Back off before retrying. |
Strict errors use Problem Details, with a code and, when available, an errors array. Error entries can identify a JSON instance location, schema location, or binding tag. Legacy operations retain their historical mixture of text and structured errors.
Input boundaries
Section titled “Input boundaries”Validated DOCX defaults include a 5 MiB template, 500 controls, 4 MiB JSON at depth 64, 1,000 repeat items, and 100 returned diagnostics. Deployed HTTP file/control settings can lower these limits. Request deadlines and rate limits are configured by the service administrator; rate limits are shared, not a customer quota.
Browser examples deliberately impose smaller data limits and terminate their worker on cancellation or timeout. HTTP cancellation is cooperative between library operations.
Troubleshooting
Section titled “Troubleshooting”If a generated file will not open, first check whether an error body was saved with a .docx or .xlsx extension. If a binding fails only inside a repeat, inspect the current item context and use root for report-level values. If schema validation fails, use the reported JSON pointer and compare the actual JSON types; a numeric string is not a number.
Retry transient transport failures with a bounded policy. Validation errors require correcting the input rather than retrying unchanged. Preserve the original template; generated reports are separate copies.