included .then() promise on HTTP for more semantic code