update API http responses