AngularJs $http timeout response code

时间:2016-07-11 22:33:19

标签: angularjs

If I have

$http.get(url)
    .success(function(data, status, headers, config) {})
    .error(function(data, status, headers, config) {});

what value would status have if ther were a timeout (no internet connection). Would it just be 404?

1 个答案:

答案 0 :(得分:0)

Sicne @HamletHakobyan不会发布回答,我会指出他的评论是正确的 - 状态是-1