closure-library
closure-library copied to clipboard
XhrIo returns goog.net.HTTP_ERROR when it can't connect to the host
When XhrIo cannot connect to a host, it returns a goog.net.HTTP_ERROR which is only meant to be returned when there is a non-successful HTTP status code. The description for this error is: 'Http response at 400 or 500 level', but no HTTP connection is ever able to be made.
Looking at the other ErrorCode's available, I'm not sure if there is a better alternative however.