#### [Abblix\.SecurityEvents](https://www.abblix.com/en/docs/api/abblix-securityevents 'index')
### [Abblix\.SecurityEvents\.Delivery](https://www.abblix.com/en/docs/api/abblix-securityevents/Abblix.SecurityEvents.Delivery 'Abblix\.SecurityEvents\.Delivery')

## PushDeliveryResult Class

What a push delivery request earns: the status code the transport answers with, and \- only
beside a 400 \- the error body the transmitter reads \(RFC 8935 Sections 2\.2, 2\.3\)\. The shape
is transport\-neutral on purpose: any host adapter renders it, none decides it\.

```csharp
public sealed record PushDeliveryResult : System.IEquatable<Abblix.SecurityEvents.Delivery.PushDeliveryResult>
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → PushDeliveryResult

Implements [System\.IEquatable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')[PushDeliveryResult](https://www.abblix.com/en/docs/api/abblix-securityevents/Abblix.SecurityEvents.Delivery.PushDeliveryResult 'Abblix\.SecurityEvents\.Delivery\.PushDeliveryResult')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')
### Constructors

## PushDeliveryResult\(HttpStatusCode, DeliveryError\) Constructor {#Abblix.SecurityEvents.Delivery.PushDeliveryResult.PushDeliveryResult(System.Net.HttpStatusCode,Abblix.SecurityEvents.Delivery.DeliveryError)}

What a push delivery request earns: the status code the transport answers with, and \- only
beside a 400 \- the error body the transmitter reads \(RFC 8935 Sections 2\.2, 2\.3\)\. The shape
is transport\-neutral on purpose: any host adapter renders it, none decides it\.

```csharp
public PushDeliveryResult(System.Net.HttpStatusCode StatusCode, Abblix.SecurityEvents.Delivery.DeliveryError? Error);
```
#### Parameters

###### `StatusCode` [System\.Net\.HttpStatusCode](https://learn.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode 'System\.Net\.HttpStatusCode') {#Abblix.SecurityEvents.Delivery.PushDeliveryResult.PushDeliveryResult(System.Net.HttpStatusCode,Abblix.SecurityEvents.Delivery.DeliveryError).StatusCode}

The HTTP status the response carries\.

###### `Error` [DeliveryError](https://www.abblix.com/en/docs/api/abblix-securityevents/Abblix.SecurityEvents.Delivery.DeliveryError 'Abblix\.SecurityEvents\.Delivery\.DeliveryError') {#Abblix.SecurityEvents.Delivery.PushDeliveryResult.PushDeliveryResult(System.Net.HttpStatusCode,Abblix.SecurityEvents.Delivery.DeliveryError).Error}

The error body of a failure response; null on acceptance, whose response
            body is empty \(RFC 8935 Section 2\.2\)\.
### Fields

## PushDeliveryResult\.ErrorLanguage Field {#Abblix.SecurityEvents.Delivery.PushDeliveryResult.ErrorLanguage}

The language of the error descriptions this package writes, for the header RFC 8935
Section 2\.3 requires beside them: "The response MUST include a 'Content\-Language' header
field whose value indicates the language of the error descriptions included in the response
body\."

```csharp
public const string ErrorLanguage = "en";
```

#### Field Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')

### Remarks
Stated here rather than in each host adapter, because the language is a property of the
descriptions and those are written here\. A deployment translating them replaces the value
where it replaces the text, and the two cannot then part\.
### Properties

## PushDeliveryResult\.Accepted Property {#Abblix.SecurityEvents.Delivery.PushDeliveryResult.Accepted}

The one success: "202 Accepted" with an empty body \(RFC 8935 Section 2\.2\)\. A single
shared instance, because acceptance carries no request\-specific state\.

```csharp
public static Abblix.SecurityEvents.Delivery.PushDeliveryResult Accepted { get; }
```

#### Property Value
[PushDeliveryResult](https://www.abblix.com/en/docs/api/abblix-securityevents/Abblix.SecurityEvents.Delivery.PushDeliveryResult 'Abblix\.SecurityEvents\.Delivery\.PushDeliveryResult')

## PushDeliveryResult\.Error Property {#Abblix.SecurityEvents.Delivery.PushDeliveryResult.Error}

The error body of a failure response; null on acceptance, whose response
            body is empty \(RFC 8935 Section 2\.2\)\.

```csharp
public Abblix.SecurityEvents.Delivery.DeliveryError? Error { get; init; }
```

#### Property Value
[DeliveryError](https://www.abblix.com/en/docs/api/abblix-securityevents/Abblix.SecurityEvents.Delivery.DeliveryError 'Abblix\.SecurityEvents\.Delivery\.DeliveryError')

## PushDeliveryResult\.StatusCode Property {#Abblix.SecurityEvents.Delivery.PushDeliveryResult.StatusCode}

The HTTP status the response carries\.

```csharp
public System.Net.HttpStatusCode StatusCode { get; init; }
```

#### Property Value
[System\.Net\.HttpStatusCode](https://learn.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode 'System\.Net\.HttpStatusCode')
### Methods

## PushDeliveryResult\.BadRequest\(DeliveryError\) Method {#Abblix.SecurityEvents.Delivery.PushDeliveryResult.BadRequest(Abblix.SecurityEvents.Delivery.DeliveryError)}

A rejection: "400 Bad Request" carrying the error the transmitter acts on
\(RFC 8935 Section 2\.3\)\.

```csharp
public static Abblix.SecurityEvents.Delivery.PushDeliveryResult BadRequest(Abblix.SecurityEvents.Delivery.DeliveryError error);
```
#### Parameters

###### `error` [DeliveryError](https://www.abblix.com/en/docs/api/abblix-securityevents/Abblix.SecurityEvents.Delivery.DeliveryError 'Abblix\.SecurityEvents\.Delivery\.DeliveryError') {#Abblix.SecurityEvents.Delivery.PushDeliveryResult.BadRequest(Abblix.SecurityEvents.Delivery.DeliveryError).error}

What was wrong with the SET, in registry vocabulary\.

#### Returns
[PushDeliveryResult](https://www.abblix.com/en/docs/api/abblix-securityevents/Abblix.SecurityEvents.Delivery.PushDeliveryResult 'Abblix\.SecurityEvents\.Delivery\.PushDeliveryResult')
