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

---
```ts
getStatusCodesWithDiagnostics(program, type): [HttpStatusCodes, readonly Diagnostic[]]
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `type` | `ModelProperty` |

## Returns

[[`HttpStatusCodes`](../type-aliases/HttpStatusCodes.md), readonly `Diagnostic`[]]
