Fixed wrong attribute name of APIError instance