Better invalid API response logging