Table of Contents

Class Error.Unauthorized

Namespace
Trellis
Assembly
Trellis.Core.dll

HTTP 401 — authentication is required or has failed.

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

Constructors

Unauthorized(EquatableArray<AuthChallenge>)

HTTP 401 — authentication is required or has failed.

public Unauthorized(EquatableArray<AuthChallenge> Challenges = default)

Parameters

Challenges EquatableArray<AuthChallenge>

Authentication challenges to present to the client (round-trips WWW-Authenticate).

Properties

Challenges

Authentication challenges to present to the client (round-trips WWW-Authenticate).

public EquatableArray<AuthChallenge> Challenges { get; init; }

Property Value

EquatableArray<AuthChallenge>

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