query('SELECT 1'); json_out(['status' => 'ok']); } catch (Throwable $e) { error_log('health: ' . $e->getMessage()); json_out(['status' => 'error'], 503); }