we should have a hook for an AJAX error.