rdio/rdio-simple — pull request #8 by steveluscher (2013-01-17 01:07:35+00:00)
Title: [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.