void tryWriteErrorResponse(Throwable error, Callback callback, boolean developerMode) {
        synchronized (monitor) {
            if (jettyResponse.isCommitted()) {
                callback.succeeded();
                return;
            }
            // Ignore failure if it does not succeed
            org.eclipse.jetty.server.Response.writeError(
                    jettyRequest, jettyResponse, Callback.from(callback::succeeded), getStatusCode(error), getReasonPhrase(error, developerMode));
        }
    }
A {@link ResponseHandler} that writes the response to Jetty ({@link org.eclipse.jetty.server.Response}).

@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/JettyResponseWriter.java