blackbox_exporter is probably the tool for this. You can match on the status code, or use a regex to match on the body: that's fine if it's a plain "0" or "1".
If the body is JSON or XML and you want to extract a value from deep inside the structure, it might be cleaner to do it a different way.