Parse http responses