namespace NATS.Server.JetStream.Api;

public sealed class JetStreamApiError
{
    public int Code { get; init; }
    public string Description { get; init; } = string.Empty;

    /// <summary>
    /// When non-null, indicates which node is the current leader.
    /// Go reference: jetstream_api.go — not-leader responses include a leader_hint
    /// so clients can redirect to the correct node.
    /// </summary>
    public string? LeaderHint { get; init; }
}
