Table of Contents

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

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, HTTP-aligned identifier for this case (for example "method-not-allowed" or "precondition-failed").

public override string Kind { get; }

Property Value

string

Unit

The range unit (typically "bytes").

public string Unit { get; init; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.