ktor-server-core / io.ktor.features / UnsupportedMediaTypeException

UnsupportedMediaTypeException

class UnsupportedMediaTypeException : ContentTransformationException, CopyableThrowable<UnsupportedMediaTypeException>

Thrown when there is no conversion for a content type configured. HTTP status 415 Unsupported Media Type will be replied when this exception is thrown and not caught.

Constructors

<init>

UnsupportedMediaTypeException(contentType: ContentType)

Thrown when there is no conversion for a content type configured. HTTP status 415 Unsupported Media Type will be replied when this exception is thrown and not caught.

Functions

createCopy

fun createCopy(): UnsupportedMediaTypeException?