Indicate it specifically throws a ValueError if an API error has happens.