

# InvalidRequestDetail
<a name="API_InvalidRequestDetail"></a>

Provides additional detail about why the request failed.

## Contents
<a name="API_InvalidRequestDetail_Contents"></a>

 ** Reason **   <a name="comprehend-Type-InvalidRequestDetail-Reason"></a>
Reason codes include the following values:  
+ DOCUMENT\$1SIZE\$1EXCEEDED - Document size is too large. Check the size of your file and resubmit the request.
+ UNSUPPORTED\$1DOC\$1TYPE - Document type is not supported. Check the file type and resubmit the request.
+ PAGE\$1LIMIT\$1EXCEEDED - Too many pages in the document. Check the number of pages in your file and resubmit the request.
+ TEXTRACT\$1ACCESS\$1DENIED - Access denied to Amazon Textract. Verify that your account has permission to use Amazon Textract API operations and resubmit the request.
+ NOT\$1TEXTRACT\$1JSON - Document is not Amazon Textract JSON format. Verify the format and resubmit the request.
+ MISMATCHED\$1TOTAL\$1PAGE\$1COUNT - Check the number of pages in your file and resubmit the request.
+ INVALID\$1DOCUMENT - Invalid document. Check the file and resubmit the request.
Type: String  
Valid Values: `DOCUMENT_SIZE_EXCEEDED | UNSUPPORTED_DOC_TYPE | PAGE_LIMIT_EXCEEDED | TEXTRACT_ACCESS_DENIED | NOT_TEXTRACT_JSON | MISMATCHED_TOTAL_PAGE_COUNT`   
Required: No

## See Also
<a name="API_InvalidRequestDetail_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/comprehend-2017-11-27/InvalidRequestDetail) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/comprehend-2017-11-27/InvalidRequestDetail) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/comprehend-2017-11-27/InvalidRequestDetail) 