

# CollectionErrorDetail
<a name="API_CollectionErrorDetail"></a>

Error information for an OpenSearch Serverless request.

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

 ** errorCode **   <a name="opensearchserverless-Type-CollectionErrorDetail-errorCode"></a>
The error code for the request. For example, `NOT_FOUND`.  
Type: String  
Required: No

 ** errorMessage **   <a name="opensearchserverless-Type-CollectionErrorDetail-errorMessage"></a>
A description of the error. For example, `The specified Collection is not found.`   
Type: String  
Required: No

 ** id **   <a name="opensearchserverless-Type-CollectionErrorDetail-id"></a>
If the request contains collection IDs, the response includes the IDs provided in the request.  
Type: String  
Length Constraints: Minimum length of 3. Maximum length of 40.  
Pattern: `[a-z0-9]{3,40}`   
Required: No

 ** name **   <a name="opensearchserverless-Type-CollectionErrorDetail-name"></a>
If the request contains collection names, the response includes the names provided in the request.  
Type: String  
Length Constraints: Minimum length of 3. Maximum length of 32.  
Pattern: `[a-z][a-z0-9-]+`   
Required: No

## See Also
<a name="API_CollectionErrorDetail_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/opensearchserverless-2021-11-01/CollectionErrorDetail) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/opensearchserverless-2021-11-01/CollectionErrorDetail) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/opensearchserverless-2021-11-01/CollectionErrorDetail) 