A fix for missing response_code in case of an error.

The data structure returned from the server has apparently
changed recently and the current code misses at least this
fix.

Signed-off-by: Jukka Honkela <jukka.honkela@singon.com>