[jQuery] async treeview - Can we have a callback method that is invoked when the return status is not 200?

[jQuery] async treeview - Can we have a callback method that is invoked when the return status is not 200?


Another request for the Async Treeview - in our application, we have
an automatic session time out after a set period of idle time. After
that timeout, the server will return a "302 Redirect" status. We then
popup a dialog or redirect to the login page.
We need to have a callback method that is invoked when the return
status is not "200 OK"
Is there an easy way to get that?
Thanks,
rolf