The method `outError` is missing a way to set a media type and there is no convenient way to set `error` to a custom value