private static String getReasonPhrase(Throwable t, boolean developerMode) {
        if (developerMode) {
            var out = new StringWriter();
            t.printStackTrace(new PrintWriter(out));
            return out.toString();
        } else if (t.getMessage() != null) {
            return t.getMessage();
        } else {
            return t.toString();
        }
    }
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