import urllib.request
import json
import sys

try:
    with urllib.request.urlopen('http://localhost:8900/health', timeout=5) as resp:
        body = resp.read().decode()
        print(f"STATUS: {resp.status}")
        print(f"BODY: {body}")
except Exception as e:
    print(f"DOWN: {e}")
    sys.exit(1)
