HH-45061 set HTTPError.xml|json|text only if neccessary