histoire
Version:
A fast story book powered by Vite
6 lines (5 loc) • 369 B
JavaScript
/** Small operational response contains no paths, credentials or catalog content. */
export function serveNodeHealth(response, ready, buildId, readiness) {
response.writeHead(readiness && !ready ? 503 : 200, { 'Content-Type': 'application/json', 'Cache-Control': 'no-store' });
response.end(JSON.stringify({ status: ready ? 'ready' : 'draining', buildId }));
}