@Override
    protected Throwable beforeError(Subscriber<? super HttpObject> subscriber, Throwable cause) {
        closeEncoder(true);
        return cause;
    }
A {@link FilteredStreamMessage} that applies HTTP encoding to {@link HttpObject}s as they are published.
core/src/main/java/com/linecorp/armeria/server/encoding/HttpEncodedResponse.java