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