closure-library
closure-library copied to clipboard
Do not fire success event when HTTP status code is zero
When XhrIo's send() function causes a HTTP status code of zero, it seems to mistakenly trigger the success event. In my opinion, it means there was no response. That said, I expect the error event to be triggered instead.
Or since it's not a defined error code, just the complete event without success/error events? Up to your discussion.
How to reproduce? I've been POSTing to a non-existing local path like /v2.0/me/messages/ using JSON.