twilio/twilio-node — pull request #12 by eladb (2013-07-04 02:23:42+00:00)
Title: Do not crash when twilio servers are unreachable

When a request is made and the target host is unreachable (e.g. network problems, server problems, etc), the `response` object passed to `request`'s callback is `null` (and `err` contains error information). Trying to dereference `response.statusCode` will throw a `TypeError` and crash the host process. Ouch...