refactor(HTTPError): Add a "to_" prefix to serialization methods

Perfix the serialization method names (.dict, .json, .xml) with
"to_" in order to more clearly express their utility.