Redirecting to Login page on 401 using tabs

Redirecting to Login page on 401 using tabs

How would I catch a 401 response using tabs, to redirect to my login page (i.e. after a session timeout).

My current code is:

  1. $(document).ready(function() {
  2.     $("#tabs").tabs();
  3. });

Thanks in advance,

ripnet