Usage
usage: unkey healthcheck <url>. The command has no flags.
Behavior
Redirects are followed and there’s no request timeout, so a server that never answers keeps the command waiting. A 200 response printsHealthy: HTTP 200 from <url> to stdout and exits 0. Any other status exits 1 with healthcheck failed: HTTP <code> from <url>. A connection error exits 1 with healthcheck failed: followed by the underlying error. Errors go to stderr. Use the exit status, not the success text, to gate a script.