export const STATUS_BY_KIND: Record<string, number> = {
  bad_request: 400,
  not_found: 404,
  conflict: 409,
  busy: 429,
  too_large: 413,
  unsupported: 415,
  engine_stopped: 502,
  upstream: 502,
  unauthorized: 401,
  forbidden: 403,
  store_in_use: 409,
  key_backup_exists: 409
};

export function statusForKind(kind: string): number {
  return STATUS_BY_KIND[kind] ?? 502;
}
