39384-vm/healthz.php
Flatlogic Bot 1b842dbef6 first
2026-03-30 11:13:22 +00:00

15 lines
337 B
PHP

<?php
declare(strict_types=1);
header('Content-Type: text/plain; charset=utf-8');
header('X-Robots-Tag: noindex, nofollow', true);
try {
require_once __DIR__ . '/db/config.php';
db()->query('SELECT 1');
http_response_code(200);
echo "OK\n";
} catch (Throwable $e) {
http_response_code(500);
echo "DB_ERROR\n";
}