Class HttpError.RangeNotSatisfiable
- Namespace
- Trellis
- Assembly
- Trellis.Http.Abstractions.dll
HTTP 416 — the requested byte range cannot be satisfied.
public sealed record HttpError.RangeNotSatisfiable : HttpError, ICodedTransportFault, ITransportFault, IEquatable<HttpError>, IEquatable<HttpError.RangeNotSatisfiable>
- Inheritance
-
HttpError.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, HTTP-aligned identifier for this case (for example
"method-not-allowed" or "precondition-failed").
public override string Kind { get; }
Property Value
Unit
The range unit (typically "bytes").
public string Unit { get; init; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.