checkResponse returns a hash