Response::HTTP_BAD_REQUEST,
self::MEDIA_FILE_TYPE_NOT_SUPPORTED,
'The file extension "{{ extension }}" for media object with id {{ mediaId }} is not supported.',
['mediaId' =>
$mediaId, 'extension' =>
$extension] );
} public function getErrorCode(): string
{ Feature::
triggerDeprecationOrThrow( 'v6.6.0.0',
Feature::
deprecatedMethodMessage(self::
class, __METHOD__, 'v6.6.0.0', 'use MediaException::fileExtensionNotSupported instead'
) );
return 'CONTENT__MEDIA_FILE_TYPE_NOT_SUPPORTED';
} public function getStatusCode(): int
{ Feature::
triggerDeprecationOrThrow( 'v6.6.0.0',
Feature::
deprecatedMethodMessage(self::
class, __METHOD__, 'v6.6.0.0', 'use MediaException::fileExtensionNotSupported instead'
) );