The error handler should be skipped when the request is AJAX.
The error handler should be skipped when the request is AJAX.