rackspace/reddwarf — pull request #278 by rnirmal (2011-11-23 21:04:36+00:00)
Title: Refactoring the fault codes and exceptions thrown from the api

Changed how we return error responses to the users, it's much more consistent now and also accounts for sending in more understandable error messages, instead of the standard 500.
- Refactored the tests and moved most of the stuff that doesn't belong in instances.py under the respective api/mgmt and api/ files.
- Changed most occurrences of expect_exception to assert_raises as it's more granular.
- Added some client exceptions