[node] The error callback should be triggered if the server returns a non-200 HTTP status code

The `error` event of http.request(…) doesn't get called when the HTTP status code is non-200; it gets triggered for more catastrophic network failures.

This pull request introduces some rudimentary HTTP status code checking, and fires the right handler.