Provide xhr to onError handler, useful when need show detailed error