groupon/urbanairship — pull request #12 by stewartmatheson (2012-02-09 21:14:29+00:00)
Title: Now throws an Unauthorized exception when UA returns 401 status code

Not sure if you would want this as it might break existing installs but I thought I would open a request anyway...

Currently there is no way of knowing what errors are happening in the backend. When dealing with network api calls there are many points of failure. In a system I am working on I need to know if there is an authorization error or if there is a network error. This patch creates an auth error class and throws it on 401's.