$ memescore docs healthz

GET /healthz — Health check

API docs
GET /healthz

Liveness probe for your monitoring. Returns 200 while the service is up. The status page reads it live.

Parameters

None.

Example request

curl

curl -s "https://memescore.io/healthz"

JavaScript (Node 18+ or Deno; server-side)

const res = await fetch("https://memescore.io/healthz");
if (res.status === 429) {
  const wait = Number(res.headers.get("Retry-After") || 60);
  // back off for `wait` seconds, then retry
}
const data = await res.json();
console.log(data);

Python

import os, requests

r = requests.get(
    "https://memescore.io/healthz",
    timeout=20,
)
if r.status_code == 429:
    print("retry after", r.headers.get("Retry-After"), "seconds")
else:
    print(r.json())

Example response

{
  "ok": true
}

Errors

None specific to this route beyond the general errors.