# PostaApiException

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Posta](/reference/api/csharp/communitytoolkit.aspire.posta.md)
- Version: `13.6.1`
- Namespace: `CommunityToolkit.Aspire.Posta.Transport`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9c2addac6f527ef2e33712d290b84574b455a3b/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.
