@Override public void failed(Throwable t) {
                                ack.run();
                                onError.accept(t.getMessage());
                            }
Called at the end of response rendering, before generic status data is written. Called from a dedicated thread pool.
vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java