title: Angular 2 How to redirect to 404 or other path if the path does not exist
body: <p>I was trying to redirect 404 <code>/</code> other path if the path does not exist in angular 2</p>
  
  <p>I tried research there is some method for angular 1 but not angular 2.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>@RouteConfig([
  {
      path: '/news',
      name: 'HackerList',
      component: HackerListComponent,
      useAsDefault: true
  },
  {
      path: '/news/page/:page',
      name: 'TopStoriesPage',
      component: HackerListComponent
  },
  {
      path: '/comments/:id',
      name: 'CommentPage',
      component: HackerCommentComponent
  }
  ])
  </code></pre>
  
  <p>So example if I redirect to <code>/news/page/</code> then it works and it return me an empty page how do you handle this kind of case happen?</p>