title: 500 http status routing in angularjs
body: <p>I have an angularjs application, and I'm using <code>ui-router</code> for routing.</p>
  
  <p>I have a state as following :</p>
  
  <pre><code>.state('core.page500', {
          url: '/page500',
          templateUrl: 'views/tmpl/pages/page500.html'
        })
  </code></pre>
  
  <p>And I want that whenever some api call returns 500 as an HTTP status in my application to route me to this state.</p>
  
  <p>Is this possible in AngularJS ?</p>