Check results from unpack and return error if it failed
Fixed: when retrieving bucket properties the response code was checked against the wrong constant