Handling RESTful HTTP errors with promises

Preface I understood the basic concept of promises before I started working at Expensify but I had never really used them in production code before. Since then, I've taken a lot of the things I learnt over to Uber with me and have applied that knowledge to the projects I'm…