Use HttpError values in all util.go functions