Cleaned up API error handling stubs in apimanager.py