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
CompleteLengthlongThe full length of the resource (used to synthesize the
Content-Rangeheader).UnitstringThe 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
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
Unit
The range unit (typically "bytes").
public string Unit { get; init; }