code: def register_stats_handler(app, server_name, prefix='/status/'):
      
      if not prefix.endswith('/'):
          prefix += '/'
      handler = functools.partial(bottlestats, server_name)
  
      app.get(prefix, callback=handler)
      app.get(prefix + '<path:path>', callback=handler)
docs: Register the stats handler with a Flask app, serving routes
      with a given prefix. The prefix defaults to '/_stats/', which is
      generally what you want.