# PostaApiException

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Posta](/reference/api/csharp/communitytoolkit.aspire.posta.md)
- Version: `13.5.0`
- Namespace: `CommunityToolkit.Aspire.Posta.Transport`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Posta/Transport/PostaApiException.cs)
- Inherits: `HttpRequestException`

Represents a non-successful response returned by Posta.

## Definition

```csharp
namespace CommunityToolkit.Aspire.Posta.Transport;

public sealed class PostaApiException
    : System.Net.Http.HttpRequestException
{
    // ...
}
```

## Constructors

- [PostaApiException(HttpStatusCode, string?, string)](/reference/api/csharp/communitytoolkit.aspire.posta/postaapiexception/constructors.md#constructor-httpstatuscode-string-string) -- Represents a non-successful response returned by Posta.

## Properties

- [ResponseBody](/reference/api/csharp/communitytoolkit.aspire.posta/postaapiexception/properties.md#responsebody) : `string?` `get` -- Gets the response body, when one was returned.
