latoc.tcl: improve http request error handling/reporting