\r\n \r\n

\r\n
{{ '404.NOTFOUND' | translate }}
\r\n\r\n
\r\n
\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';\r\nimport { Observable, throwError } from 'rxjs';\r\nimport { catchError } from 'rxjs/operators';\r\nimport { AuthService } from '../services/auth.service';\r\n\r\n\r\n@Injectable()\r\nexport class ErrorInterceptor implements HttpInterceptor {\r\n\r\n constructor(private authenticationService: AuthService) {\r\n }\r\n\r\n //Om vi får 401 svar så har token gått ut och vi loggar då automatiskt ut användaren.\r\n intercept(request: HttpRequest