> ## Documentation Index
> Fetch the complete documentation index at: https://docs.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting request errors

<div className="article_labels_list" style={{display: 'none'}} dangerouslySetInnerHTML={{__html: "End User , Box Doc Gen , Overview , Article , Product Utilization , Established"}} />

When you make a document generation request, it might fail at the request stage or during document generation.

## Request stage errors

While request failures are rare, the following table describes possible error scenarios and how to troubleshoot them.

| <strong>Response code</strong> | <strong>Type</strong> | <strong>Issue</strong> | <strong>Solution</strong> |
| - | - | - | - |
| 200 | Success | Doc Gen accepted the request for processing. | No action needed. Processing is in progress. |
| 400 | Error | Invalid folder ID, output type, input source, or JSON format. | Verify that you include a valid folder ID, output type, input source, and JSON data format. |
| 401 | Error | Unauthorized request. | Verify that you have access to the file. |
| 403 | Error | Access denied to the content or resource. | Verify that you have access to the file and folder specified in the request. |
| 404 | Error | The template file doesn't exist. | Verify that the specified template file exists. |
| 429 | Error | Too many requests. | See the [rate limit guide](https://developer.box.com/guides/api-calls/permissions-and-errors/rate-limits) for information about request limits. |

## Document generation stage errors

After Doc Gen validates the request and initiates document generation, failures can occur during processing. To troubleshoot these errors:

1. Check the [status of the document generation activity](/en/box-doc-gen/tracking-and-troubleshooting/document-generation-statuses).
2. [View the activity details](/en/box-doc-gen/tracking-and-troubleshooting/tracking-document-generation-activity) for the failed request.
3. Review the error information and JSON data used in the request.

## Box security limitations

If document generation fails due to access restrictions, verify that Box Shield classification policies are configured correctly. Doc Gen requires access to templates to generate documents. If a Box Shield classification policy restricts access to a template, document generation fails. For more context, see [Box security limitations](/en/box-doc-gen/box-doc-gen-templates/box-doc-gen-limitations).
