diff --git a/cds-fontend-2025.V1/src/enum/index.ts b/cds-fontend-2025.V1/src/enum/index.ts index a803154..7b6c20a 100644 --- a/cds-fontend-2025.V1/src/enum/index.ts +++ b/cds-fontend-2025.V1/src/enum/index.ts @@ -4,5 +4,6 @@ export enum SetupStoreId { Auth = 'auth-store', Route = 'route-store', Tab = 'tab-store', - Notice = 'notice-store' + Notice = 'notice-store', + Dict = 'dict-store' } diff --git a/cds-fontend-2025.V1/src/hooks/business/download.ts b/cds-fontend-2025.V1/src/hooks/business/download.ts index cc85fef..6111f18 100644 --- a/cds-fontend-2025.V1/src/hooks/business/download.ts +++ b/cds-fontend-2025.V1/src/hooks/business/download.ts @@ -116,6 +116,10 @@ export function useDownload() { const response = await fetch(fullUrl, requestOptions); + if (response.status !== 200) { + throw new Error(errorCodeRecord.default); + } + await handleResponse(response); const finalFilename = filename || response.headers.get('Download-Filename') || `download-${timestamp}`;