# LicenseErrorCode Type

> LicenseErrorCode type alias in the Node.js TypeScript API: Why a license was rejected, with the same codes in JavaScript, TypeScript and .NET.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > LicenseErrorCode Type
- **515 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/licenseerrorcode/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/licenseerrorcode/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/licenseerrorcode/llms-full.txt

---

Why a license was rejected, with the same codes in JavaScript, TypeScript and .NET.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Type-only declaration; it is not a JavaScript runtime constructor.

### Syntax

```typescript
type LicenseErrorCode = 'LicenseMissing' | 'LicenseMalformed' | 'LicenseSignatureInvalid' | 'LicenseProductNotCovered' | 'LicenseVersionNotCovered' | 'LicenseUnknownKey' | 'LicenseUnsupportedFormat' | 'LicenseNotReady' | 'TrialNotStarted' | 'TrialExpired';
```

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

```typescript
import type { LicenseErrorCode } from '@txtextcontrol/tx-sheet-control-server';

const value: LicenseErrorCode = 'LicenseMissing';
console.log(value);
```

### Remarks

TX Sheet Control checks a license in a fixed order, and the first check that fails gives the code: `LicenseMissing` and `LicenseUnsupportedFormat` for the text, `LicenseMalformed` for its characters and contents, `LicenseSignatureInvalid` for the signature, `LicenseProductNotCovered` for the component, `LicenseVersionNotCovered` for the major version, and `TrialNotStarted` and `TrialExpired` for the trial period. A license issued by the Text Control Account never fails with `LicenseUnknownKey`, and `LicenseNotReady` is a state of the control's own initialization. [Licensing](https://docs.textcontrol.com/tx-sheet-control/deployment/licensing/#how-the-license-is-checked) says what each code means and what to do.

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)
- [Licensing](https://docs.textcontrol.com/tx-sheet-control/deployment/licensing/llms-full.txt)

---

## Nearby

- **Previous:** [LicenseError.code Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/licenseerror/code-property/llms-full.txt)
- **Next:** [LicenseInfo Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/licenseinfo/llms-full.txt)
