docs: def _get_pretty_body(headers, body):
      """
      Return a pretty printed body using the Content-Type header information.
  
      :param headers: Headers for the request/response (dict)
      :param body: Body to pretty print (string)
      :return: Body pretty printed (string)
      """
      try:
          if CONTENT_TYPE_HEADER_NAME in headers:
              if XMLRenderer.DEFAULT_CONTENT_TYPE == headers[CONTENT_TYPE_HEADER_NAME]:
                  xml_parsed = parseString(body)
                  pretty_xml_as_string = xml_parsed.toprettyxml()
                  return pretty_xml_as_string
              elif JSONRenderer.DEFAULT_CONTENT_TYPE == headers[CONTENT_TYPE_HEADER_NAME]:
                  decoded_body = body.decode('utf-8')
                  parsed = json.loads(decoded_body)
                  return json.dumps(parsed, sort_keys=True, indent=4)
      except:
          pass
      finally:
          return body