```ts
export function cloudCode(table: Record<string, string>, code: string): string {
  const lowerCaseCode = code.toUpperCase();
  if (!table[lowerCaseCode]) {
    return 'unknown';
  }
  return table[lowerCaseCode];
}
```