diff --git a/src/services/authInterceptor.ts b/src/services/authInterceptor.ts index cf37191544d587734c508bfb5258560dd98e654d..dcbf0fffdd6a2e24c1d9486119ac25894e7e6000 100644 --- a/src/services/authInterceptor.ts +++ b/src/services/authInterceptor.ts @@ -51,6 +51,11 @@ authInterceptor.interceptors.response.use( return Promise.reject(err) }) } + // Specific handler for 404 errors + if (error.response?.status === 404) { + console.error('Requested resource not found:', error.config.url); + // Optionally redirect or inform the user, depending on the context + } return Promise.reject(error) } )