Table of Contents

Class HttpError.PreconditionRequired

Namespace
Trellis
Assembly
Trellis.Http.Abstractions.dll

HTTP 428 — the resource requires a precondition that the request did not include.

public sealed record HttpError.PreconditionRequired : HttpError, ICodedTransportFault, ITransportFault, IEquatable<HttpError>, IEquatable<HttpError.PreconditionRequired>
Inheritance
HttpError.PreconditionRequired
Implements
Inherited Members
Extension Methods

Constructors

PreconditionRequired(PreconditionKind)

HTTP 428 — the resource requires a precondition that the request did not include.

public PreconditionRequired(PreconditionKind Condition)

Parameters

Condition PreconditionKind

The precondition that must be supplied.

Properties

Code

Gets the machine-readable code for this fault. Defaults to Kind; cases whose payload identifies a specific conditional header override it.

public override string Code { get; }

Property Value

string

Condition

The precondition that must be supplied.

public PreconditionKind Condition { get; init; }

Property Value

PreconditionKind

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

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.