import { Routes } from '@angular/router'
import { Error404 } from './error-404'
import { Unauthorized } from '../unauthorized'

export const ERROR_PAGES_ROUTES: Routes = [
  {
    path: '404', // 
    component: Error404,
    data: { title: 'Page Non Trouvée' },
  },
  {
    path: '403', // 
    component: Unauthorized,
    data: { title: 'Accès Refusé' },
  },
  {
    path: '500', // 
    component: Error404, 
    data: { title: 'Erreur Serveur' },
  },
  // Redirection par défaut
  { path: '', redirectTo: '404', pathMatch: 'full' }
]