Table of Contents

Class Error.RangeNotSatisfiable

Namespace
Trellis
Assembly
Trellis.Core.dll

HTTP 416 — the requested byte range cannot be satisfied.

public sealed record Error.RangeNotSatisfiable : Error, IEquatable<Error>, IEquatable<Error.RangeNotSatisfiable>
Inheritance
Error.RangeNotSatisfiable
Implements
Inherited Members
Extension Methods

Constructors

RangeNotSatisfiable(long, string)

HTTP 416 — the requested byte range cannot be satisfied.

public RangeNotSatisfiable(long CompleteLength, string Unit = "bytes")

Parameters

CompleteLength long

The full length of the resource (used to synthesize the Content-Range header).

Unit string

The range unit (typically "bytes").

Properties

CompleteLength

The full length of the resource (used to synthesize the Content-Range header).

public long CompleteLength { get; init; }

Property Value

long

Kind

Gets the stable, IANA-aligned identifier for this case (e.g. "not-found", "unprocessable-content"). Suitable for telemetry, problem-details type URI synthesis, and wire serialization.

public override string Kind { get; }

Property Value

string

Unit

The range unit (typically "bytes").

public string Unit { get; init; }

Property Value

string