import { buildStartupUnavailablePayload } from "../../startup-readiness.js";
//#region src/gateway/hono/lib/startup-unavailable.ts
function respondStartupUnavailable(c, method, retryAfterMs = 500) {
	const payload = buildStartupUnavailablePayload({
		method,
		retryAfterMs
	});
	const retrySeconds = Math.max(1, Math.ceil(payload.retryAfterMs / 1e3));
	return c.json(payload, 503, { "Retry-After": String(retrySeconds) });
}
//#endregion
export { respondStartupUnavailable };

//# sourceMappingURL=startup-unavailable.js.map