Angular2 HTTP - How to understand that the backend server is down

后端 未结 3 1500
我在风中等你
我在风中等你 2021-02-19 07:55

I am developing a front end which consumes JSON services provided by a server.

I happily use HTTP of Angular2 and I can catch errors via .catch() operator.

3条回答
  •  迷失自我
    2021-02-19 08:41

    I have the same problem while using angular2.0.0-beta.15

    It seems like this is a bug. You get http status 200 and this is not correct:

    https://github.com/angular/http/issues/54

提交回复
热议问题