---
jsApi: true
title: "[F] setStatusCode"

---
```ts
setStatusCode(
  program,
  entity,
  codes): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `entity` | `Model` \| `ModelProperty` |
| `codes` | `string`[] |

## Returns

`void`
