Table of Contents

Class HttpError.NotAcceptable

Namespace
Trellis
Assembly
Trellis.Http.Abstractions.dll

HTTP 406 — none of the available representations are acceptable to the client.

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

Constructors

NotAcceptable(EquatableArray<string>)

HTTP 406 — none of the available representations are acceptable to the client.

public NotAcceptable(EquatableArray<string> Available)

Parameters

Available EquatableArray<string>

Media types the server can produce.

Properties

Available

Media types the server can produce.

public EquatableArray<string> Available { get; init; }

Property Value

EquatableArray<string>

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.