(cherry picked from commit dad01a5997994038acbcdf91cf66259f1a3bc41e)
HtmlViewer
html/text
plain/text
handleSuccessViewState
handleFailureViewState