---
jsApi: true
title: "[F] $statusCode"

---
```ts
$statusCode(context, entity): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | `DecoratorContext` |
| `entity` | `ModelProperty` |

## Returns

`void`
