How to parse http status code as binary sensor?

I have a health endpoint of a service running in my local network. The endpoint doesn’t send any JSON, but just the 200 status code if everything is okay. How can I create a binary sensor out of that?

Found this here: How do I check the availability of a webserver? - #20 by Moonbase59

1 Like