Class Error.NotAcceptable
- Namespace
- Trellis
- Assembly
- Trellis.Core.dll
HTTP 406 — none of the available representations are acceptable to the client.
public sealed record Error.NotAcceptable : Error, IEquatable<Error>, IEquatable<Error.NotAcceptable>
- Inheritance
-
Error.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
AvailableEquatableArray<string>Media types the server can produce.
Properties
Available
Media types the server can produce.
public EquatableArray<string> Available { get; init; }
Property Value
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; }