Why not use the package that is already tracking these constants? http://godoc.org/github.com/coreos/etcd/error