Fixes #1 Added the APIError exception raise to all api calls