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

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

## Parameters

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

## Returns

`void`

## Deprecated

DO NOT USE, for internal use only.
