Table of Contents

Class HttpError.UnsupportedMediaType

Namespace
Trellis
Assembly
Trellis.Http.Abstractions.dll

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

public sealed record HttpError.UnsupportedMediaType : HttpError, ICodedTransportFault, ITransportFault, IEquatable<HttpError>, IEquatable<HttpError.UnsupportedMediaType>
Inheritance
HttpError.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, HTTP-aligned identifier for this case (for example "method-not-allowed" or "precondition-failed").

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>

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.