penyesuaian UI cooming soon
This commit is contained in:
@@ -14,6 +14,12 @@ export class HttpErrorInterceptorService {
|
||||
catchError((error: HttpErrorResponse) => {
|
||||
if (error.status === 403) {
|
||||
this.router.navigate(['/error/error403']);
|
||||
} else if (error.status === 404) {
|
||||
this.router.navigate(['/error/error404']);
|
||||
} else if (error.status === 500) {
|
||||
this.router.navigate(['/error/error500']);
|
||||
} else if (error.status === 502) {
|
||||
this.router.navigate(['/error/error500']);
|
||||
}
|
||||
return throwError(error);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user