code: func HasErrCode(err error, code ErrCode) bool {
  	switch err := err.(type) {
  	case *Err:
  		return err.Code == code
  	default:
  		return false
  	}
  }
docs: // HasErrCode returns true if err is an *Err and err.Code == code.