Throw an exception if the API returns an error
Unit testing for the API errors
Fix the provides method for the ServiceProvider