templates / branches--on commit http: factor out http error code handling (8809703)
   1: this is just to ensure the directory exists.