

# ErrorReason
<a name="API_ErrorReason"></a>

An error that explains why an action did not succeed.

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

 ** ErrorCode **   <a name="servicequotas-Type-ErrorReason-ErrorCode"></a>
Service Quotas returns the following error values:  
+  `DEPENDENCY_ACCESS_DENIED_ERROR` - The caller does not have the required permissions to complete the action. To resolve the error, you must have permission to access the Amazon Web Services service or quota.
+  `DEPENDENCY_THROTTLING_ERROR` - The Amazon Web Services service is throttling Service Quotas. 
+  `DEPENDENCY_SERVICE_ERROR` - The Amazon Web Services service is not available.
+  `SERVICE_QUOTA_NOT_AVAILABLE_ERROR` - There was an error in Service Quotas.
Type: String  
Valid Values: `DEPENDENCY_ACCESS_DENIED_ERROR | DEPENDENCY_THROTTLING_ERROR | DEPENDENCY_SERVICE_ERROR | SERVICE_QUOTA_NOT_AVAILABLE_ERROR`   
Required: No

 ** ErrorMessage **   <a name="servicequotas-Type-ErrorReason-ErrorMessage"></a>
The error message.  
Type: String  
Required: No

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/service-quotas-2019-06-24/ErrorReason) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/service-quotas-2019-06-24/ErrorReason) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/service-quotas-2019-06-24/ErrorReason) 