# DurableHttpOperationException.Code

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durablehttpoperationexception/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durablehttpoperationexception/properties/)

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/DurableHttpOperation.cs)

```csharp
[Orleans.Id(1)]
public string? Code
```

Gets the error code which the operation reported, if any.
