Table of Contents

Class Error.UnsupportedMediaType

Namespace
Trellis
Assembly
Trellis.Core.dll

HTTP 415 — the request's media type is not supported.

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

Constructors

UnsupportedMediaType(EquatableArray<string>)

HTTP 415 — the request's media type is not supported.

public UnsupportedMediaType(EquatableArray<string> Supported)

Parameters

Supported EquatableArray<string>

Media types the resource can accept.

Properties

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

Supported

Media types the resource can accept.

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

Property Value

EquatableArray<string>