closure-library icon indicating copy to clipboard operation
closure-library copied to clipboard

XhrIo returns goog.net.HTTP_ERROR when it can't connect to the host

Open danielcompton opened this issue 9 years ago • 0 comments

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.

danielcompton avatar Mar 29 '16 18:03 danielcompton