packagecommandstypeErrorTypeuintconst(NormalErrorType=iota// general errorsClient// error was caused by the client, (e.g. invalid CLI usage)// TODO: add more types of errors for better error-specific handling)typeResponsestruct{req*RequestErrorerrorErrorTypeErrorTypeValueinterface{}}func(r*Response)SetError(errerror,errTypeErrorType){r.Error=errr.ErrorType=errType}/*func (r *Response) Encode() ([]byte, error) {}*/