query('SELECT 1'); http_response_code(200); echo json_encode([ 'status' => 'ok', 'app' => 'lamp-store-admin', 'time' => gmdate('c'), ], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); } catch (Throwable $exception) { http_response_code(500); echo json_encode([ 'status' => 'error', 'message' => 'database_unreachable', 'time' => gmdate('c'), ], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); }