---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [cli](../index.md) / ERROR\_CODE

# Variable: ERROR\_CODE

> `const` **ERROR\_CODE**: `object`

Defined in: [packages/b2c-tooling-sdk/src/cli/base-command.ts:54](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/cli/base-command.ts#L54)

Stable error-code values passed to oclif's `this.error(msg, {code})` so that
[classifyError](../functions/classifyError.md) can categorize the resulting telemetry without parsing
error messages.

- `VALIDATION` — user/config input error (missing flag, bad value). Expected,
  not a reliability defect.
- `GUARDRAIL` — blocked by the user's own safety configuration. Working as
  intended, not a failure of the tool.

## Type Declaration

### GUARDRAIL

> `readonly` **GUARDRAIL**: `"GUARDRAIL"` = `'GUARDRAIL'`

### VALIDATION

> `readonly` **VALIDATION**: `"VALIDATION"` = `'VALIDATION'`
