The default handler used by add_healthcheck(). Returns a healthy health_response()
with no additional fields or checks.
This function also documents the handler contract: a healthcheck handler is any function
that accepts the incoming request object (req) and returns one of:
a
health_response(seehealth_response())a plain
shiny::httpResponse()(passed through untouched)a named
list, treated as the complete response body. If it contains astatus_codefield, that value is used as the HTTP status code (and removed from the body); atimestampfield is added when absent.
Handler return values are normalized via as_health_response(). If a handler throws an
error, add_healthcheck() converts it into a 503 response with status = "fail" and the
condition message under output – the endpoint stays machine-readable even when a check
is broken.
