Class UnsupportedMediaType

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.BasicRuntimeException
org.apache.juneau.http.response.BasicHttpException
org.apache.juneau.http.response.UnsupportedMediaType
All Implemented Interfaces:
Serializable, HttpMessage, HttpResponse

@Response @StatusCode(415) @Schema(description="Unsupported Media Type") public class UnsupportedMediaType extends BasicHttpException
Exception representing an HTTP 415 (Unsupported Media Type).

The request entity has a media type which the server or resource does not support.
For example, the client uploads an image as image/svg+xml, but the server requires that images use a different format.

See Also: