# DurableHttpOperationException.DurableHttpOperationException(DurableOperationStatus, string?, string?)

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

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

```csharp
public DurableHttpOperationException(DurableOperationStatus status, string? code, string? message)
```

Initializes an exception for an operation which ended with `status`.

### Parameters

- `status` (`DurableOperationStatus`): The operation's terminal status, [DurableOperationStatus](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durableoperationstatus/) or [DurableOperationStatus](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durableoperationstatus/).
- `code` (`string?`): The error code which the operation reported, if any.
- `message` (`string?`): The error message which the operation reported, if any.
