collectiveidea/tinder — pull request #30 by gfeil (2011-10-10 18:22:36+00:00)
Title: Treat an invalid subdomain as an authentication failure

37signals recently updated their Campfire API so that it now returns a 404 status when attempting to access a nonexistent subdomain. However, the extension of Faraday is only treating 401 status codes as authentication failures.

This patch will cause Faraday to raise a Tinder::AuthenticationFailed exception for a 401 or 404 status codes in the response accordingly.