Calling ping service with node red?

I have a command line sensor setup in HA right now. How would I go about having Node Red do this?

binary_sensor:
  - platform: command_line
    name: example.com
    device_class: connectivity
    command: response=$(curl -LIk -m 3 https://example.com -o /dev/null -w "%{http_code}\n" -s); test "$response" -eq 200 && echo "ON" || echo "OFF"
    scan_interval: 300
    value_template: '{{ value }}'

Basically, use the http request node along with a switch node to test statusCode.

[{"id":"47641b28.dcf6d4","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"9301d9c.b05d728","type":"http request","z":"47641b28.dcf6d4","name":"Test Site","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://www.google.com","tls":"","persist":false,"proxy":"","authType":"","x":470,"y":300,"wires":[["fc89b331.1eeda8"]]},{"id":"2ebe9bf3.0e1e6c","type":"inject","z":"47641b28.dcf6d4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"3600","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":300,"wires":[["9301d9c.b05d728"]]},{"id":"fc89b331.1eeda8","type":"switch","z":"47641b28.dcf6d4","name":"if statusCode == 200","property":"statusCode","propertyType":"msg","rules":[{"t":"eq","v":"200","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":760,"y":300,"wires":[[],[]]}]