Parse responses and raise if not 'ok'