ciaranj/node-oauth — pull request #155 by evanp (2013-08-05 18:25:21+00:00)
Title: Create a real error object on bad HTTP response

I frequently find myself special-casing the OAuth request error responses, since they are not instances of the Error class.

This change adds a new class, OAuth.Error, and returns it in case of errors in the HTTP requests. It has the same properties as the original Object instance.