HTTP error status codes not still being set

2 views
Skip to first unread message

nmi...@shoretel.com

unread,
Aug 16, 2016, 6:11:05 PM8/16/16
to Angular2
Hi,

   I don't seem to still see HTTP error status codes being set. I'm using Angular 2 RC4. This was apparently earlier fixed in RC3  (original issue here: https://github.com/angular/http/issues/54) but, even when using RC 4, it doesn't seem to be set. The browser shows the request all right:

zone.js:101 POST https://someinvalidadress:5448/login? net::ERR_NAME_NOT_RESOLVED



but the http observable error object has this:

  1. Response {_body: ProgressEvent, status: 0, ok: false, statusText: "", headers: Headers}
    1. _body:ProgressEvent
    2. headers:Headers
    3. ok:false
    4. status:0
    5. statusText:""
    6. type:3
    7. url:null

How to get hand on the exact HTTP error code? Does anybody has got it working?

Thanks in advance and regards
Reply all
Reply to author
Forward
0 new messages