Added message handling for other API errors