custom global xhr request error callback