Test cases for different API errors