# Class BSV::Network::PeerDelivery::Result <a id="class-BSV-Network-PeerDelivery-Result"></a>

**Inherits:** `Struct`

Delivery outcome — keyword struct so callers can pattern-match on
<code>#outcome</code>. Each failure mode is a distinct symbol so the caller
can choose a different remediation per case (operator alert vs. silent
retry-eligible vs. mark-bad-endpoint, etc.).

Outcome codes:
    - +:delivered+               — 200 OK + valid ACK + wtxid match
    - +:endpoint_policy_violation+ — +EndpointPolicy+ rejected the endpoint
    - +:tls_failure+             — TLS / certificate error during dial
    - +:dns_failure+             — host could not be resolved at dial time
      (distinct from policy: policy resolves in +validate!+, this code
      fires if a transport-layer DNS error still surfaces)
    - +:transport_error+         — generic socket / connection error
    - +:timeout+                 — connect or read timeout exceeded
    - +:non_200+                 — HTTP response was not 200 OK
    - +:body_too_large+          — request body exceeds policy cap
    - +:malformed_ack+           — 200 OK but body wasn't a valid JSON
      ACK envelope
    - +:wrong_acked_wtxid+       — 200 OK + JSON, but the +wtxid+ field
      did not match the subject wtxid we tried to deliver. Crypto gate
      (HLR #385 specialist synthesis): HTTP 200 alone proves nothing.

## Attributes
### `error_message` [RW] <a id="attribute-i-error_message"></a> <a id="error_message-instance_method"></a>
Returns the value of attribute error_message
- **@return** [Object] the current value of error_message

### `http_status` [RW] <a id="attribute-i-http_status"></a> <a id="http_status-instance_method"></a>
Returns the value of attribute http_status
- **@return** [Object] the current value of http_status

### `outcome` [RW] <a id="attribute-i-outcome"></a> <a id="outcome-instance_method"></a>
Returns the value of attribute outcome
- **@return** [Object] the current value of outcome

### `wtxid` [RW] <a id="attribute-i-wtxid"></a> <a id="wtxid-instance_method"></a>
Returns the value of attribute wtxid
- **@return** [Object] the current value of wtxid

## Public Instance Methods
### `delivered?()` <a id="method-i-delivered-3F"></a> <a id="delivered?-instance_method"></a>
- **@return** [Boolean]
