# Service Control v1 API - Enum QuotaError.Types.Code (2.5.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.5.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.QuotaError.Types.Code)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/2.4.0/Google.Cloud.ServiceControl.V1.QuotaError.Types.Code)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/2.3.0/Google.Cloud.ServiceControl.V1.QuotaError.Types.Code)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/2.2.0/Google.Cloud.ServiceControl.V1.QuotaError.Types.Code)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/2.1.0/Google.Cloud.ServiceControl.V1.QuotaError.Types.Code)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/2.0.0/Google.Cloud.ServiceControl.V1.QuotaError.Types.Code)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/1.4.0/Google.Cloud.ServiceControl.V1.QuotaError.Types.Code)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/1.3.0/Google.Cloud.ServiceControl.V1.QuotaError.Types.Code)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/1.2.0/Google.Cloud.ServiceControl.V1.QuotaError.Types.Code)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/1.1.0/Google.Cloud.ServiceControl.V1.QuotaError.Types.Code)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/1.0.0/Google.Cloud.ServiceControl.V1.QuotaError.Types.Code)

    public enum QuotaError.Types.Code

Reference documentation and code samples for the Service Control v1 API enum QuotaError.Types.Code.

Error codes related to project config validations are deprecated since the
quota controller methods do not perform these validations. Instead services
have to call the Check method, without quota_properties field, to perform
these validations before calling the quota controller methods. These
methods check only for project deletion to be wipe out compliant.

## Namespace

[Google.Cloud.ServiceControl.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1)

## Assembly

Google.Cloud.ServiceControl.V1.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `ApiKeyExpired` | Specified API Key has expired. |
| `ApiKeyInvalid` | Specified API key is invalid. |
| `BillingNotActive` | Consumer cannot access the service because the service requires active billing. |
| `ProjectDeleted` | Consumer's project has been marked as deleted (soft deletion). |
| `ResourceExhausted` | Quota allocation failed. Same as \[google.rpc.Code.RESOURCE_EXHAUSTED\]\[google.rpc.Code.RESOURCE_EXHAUSTED\]. |
| `Unspecified` | This is never used. |