substack/http-browserify — pull request #63 by klyngbaek (2014-08-20 21:34:18+00:00)
Title: Emit an error event when something goes wrong...

more closely mirroring the nodejs http module api. This is done my assigning an onerror handler to xhr and propagating the event up.