Table of Contents

Struct NatsSvcStatus

Namespace
NATS.Client.Services
Assembly
NATS.Client.Services.dll

Status of a NATS service response, derived from the Nats-Service-Error and Nats-Service-Error-Code response headers and the no-responders sentinel.

public readonly struct NatsSvcStatus
Inherited Members

Properties

Code

Error code from the Nats-Service-Error-Code header. 0 when the header is missing or not an integer, or when the response is a success.

HasNoResponders

true when the response is a no-responders sentinel (no service was listening).

IsSuccess

true when the response carries no service error and is not a no-responders sentinel.

Message

Error message from the Nats-Service-Error header, or null when absent.