using the `StreamConsumedError`