michaelhelmick/python-tumblpy — pull request #5 by mkai (2012-09-28 14:45:30+00:00)
Title: Add Tumblr API HTTP error code to exception classes

I've changed the exception classes (``TumblpyError``, ``TumblpyRateLimitError``, ``TumblpyAuthError``) to include the HTTP status code (if received from the Tumblr API) as ``error_code``. This is useful when checking e. g. for a 404 or other status codes for which no dedicated exception class exists.