diff --git a/npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts b/npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts index e571da42f9..35239819bf 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts +++ b/npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts @@ -77,13 +77,17 @@ export class StatusCodeErrorHandlerService implements CustomHttpErrorHandlerServ switch (this.status) { case 401: - this.authService.navigateToLogin(); - break; case 404: if (canCreateCustomError) { this.showPage(); break; } + + if (this.status === 401) { + this.authService.navigateToLogin(); + break; + } + this.showConfirmation(title, message).subscribe(); break;