Http and failed connections -> Status code 0

18 views
Skip to first unread message

Nathan Hüsken

unread,
Jul 6, 2015, 12:57:25 PM7/6/15
to haxe...@googlegroups.com
Hi,

I am trying to detect failed connections to the server (or dns lookup
failure, or anything where the error is not produced by the server but
before it has even been reached) in the haxe.Http class.
It seems to me that in this case the status code set by "onStatus" is 0.

But this behavior is not documented anyhwere. Can I rely on this, that
the "onStatus" will report "0" if the connection failed?

Thanks!
nathan
Reply all
Reply to author
Forward
0 new messages