if (content != null) addContent(new ByteArrayBuffer(content), HttpGenerator.LAST);
if (content != null) addContent(new View(new ByteArrayBuffer(content)), HttpGenerator.LAST);
    public void sendError(int code, String reason, String content, boolean close) throws IOException    {        if (!isCommitted())        {            setResponse(code, reason);            _close = close;            completeHeader(null, false);            if (content != null) addContent(new ByteArrayBuffer(content), HttpGenerator.LAST);            complete();        }    }