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

# SpendControlErrorCodes

```ts theme={null}
const SpendControlErrorCodes: {
  PER_PAYMENT_CAP: "per_payment_cap";
  CUMULATIVE_CAP: "cumulative_cap";
  ALREADY_APPLIED: "already_applied";
  CONFIGURATION_INVALID: "configuration_invalid";
  LEDGER_CAPACITY_EXCEEDED: "ledger_capacity_exceeded";
  NETWORK_NOT_ALLOWED: "network_not_allowed";
  ASSET_NOT_ALLOWED: "asset_not_allowed";
  PAYEE_NOT_ALLOWED: "payee_not_allowed";
  AMOUNT_UNPARSEABLE: "amount_unparseable";
};
```

Defined in: [guardrails/types.ts:45](https://github.com/coinbase/cdp-sdk/blob/a1195adcfa5a93627bd3cb79831b188cc13073a1/typescript/packages/cdp-sdk/src/x402/guardrails/types.ts#L45)

Typed string constants for every [SpendControlErrorCode](/sdks/cdp-sdks-v2/typescript/x402/type-aliases/SpendControlErrorCode) value.

## Type Declaration

### PER\_PAYMENT\_CAP

```ts theme={null}
readonly PER_PAYMENT_CAP: "per_payment_cap" = "per_payment_cap";
```

### CUMULATIVE\_CAP

```ts theme={null}
readonly CUMULATIVE_CAP: "cumulative_cap" = "cumulative_cap";
```

### ALREADY\_APPLIED

```ts theme={null}
readonly ALREADY_APPLIED: "already_applied" = "already_applied";
```

### CONFIGURATION\_INVALID

```ts theme={null}
readonly CONFIGURATION_INVALID: "configuration_invalid" = "configuration_invalid";
```

### LEDGER\_CAPACITY\_EXCEEDED

```ts theme={null}
readonly LEDGER_CAPACITY_EXCEEDED: "ledger_capacity_exceeded" = "ledger_capacity_exceeded";
```

### NETWORK\_NOT\_ALLOWED

```ts theme={null}
readonly NETWORK_NOT_ALLOWED: "network_not_allowed" = "network_not_allowed";
```

### ASSET\_NOT\_ALLOWED

```ts theme={null}
readonly ASSET_NOT_ALLOWED: "asset_not_allowed" = "asset_not_allowed";
```

### PAYEE\_NOT\_ALLOWED

```ts theme={null}
readonly PAYEE_NOT_ALLOWED: "payee_not_allowed" = "payee_not_allowed";
```

### AMOUNT\_UNPARSEABLE

```ts theme={null}
readonly AMOUNT_UNPARSEABLE: "amount_unparseable" = "amount_unparseable";
```
