in src/smspark/status.py [0:0]
def __call__(self, environ: Dict[str, str], start_response: Callable) -> Sequence[bytes]: # type: ignore
"""Handle GET requests to /, responding with a JSON `StatusMessage`."""
status = "200 OK"
headers = [("Content-type", "text/plain; charset=utf-8")]
start_response(status, headers)
timestamp = self._clock.now().isoformat()
payload = json.dumps(asdict(StatusMessage(status=self._status, timestamp=timestamp)))
return [payload.encode("utf-8")]