unsupportedMediaType constant
HttpStatus
const unsupportedMediaType
415 UNSUPPORTED MEDIA TYPE.
The origin server is refusing to service the request because the payload is in a format not supported by this method on the target resource.
The format problem might be due to the request's indicated Content-Type or Content-Encoding, or as a result of inspecting the data directly.
Implementation
static const HttpStatus unsupportedMediaType = HttpStatus._(
code: HttpStatusCode.unsupportedMediaType,
name: 'Unsupported Media Type',
description: 'The origin server is refusing to service the request because '
'the payload is in a format not supported by this method on '
'the target resource.',
);