# ChatGptError.Code property

Gets or sets the error code.

```csharp
public string? Code { get; set; }
```

## See Also

* class [ChatGptError](../ChatGptError.md)
* namespace [ChatGptNet.Models](../../ChatGptNet.md)

<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll -->
