code: func ParseErrorCode(value string) ErrorCode {
  	ed, ok := idToDescriptors[value]
  	if ok {
  		return ed.Code
  	}
  
  	return ErrorCodeUnknown
  }
docs: // ParseErrorCode returns the value by the string error code.
  // `ErrorCodeUnknown` will be returned if the error is not known.