func InterpretCreateError(err error, qualifiedResource unversioned.GroupResource, name string) error {
	switch {
	case storage.IsNodeExist(err):
		return errors.NewAlreadyExists(qualifiedResource, name)
	case storage.IsUnreachable(err):
		return errors.NewServerTimeout(qualifiedResource, "create", 2) // TODO: make configurable or handled at a higher level
	default:
		return err
	}
}
// InterpretCreateError converts a generic error on a create
// operation into the appropriate API error.
InterpretCreateError converts a generic error on a create
operation into the appropriate API error.
// InterpretCreateError converts a generic error on a create // operation into the appropriate API error .
func InterpretCreateError(err error, qualifiedResource unversioned.GroupResource, name string) error {
	switch {
	case storage.IsNodeExist(err):
		return errors.NewAlreadyExists(qualifiedResource, name)
	case storage.IsUnreachable(err):
		return errors.NewServerTimeout(qualifiedResource, "create", 2) 
	default:
		return err
	}
}
func InterpretCreateError ( err error , qualifiedResource unversioned . GroupResource , name string ) error { switch { case storage . IsNodeExist ( err ) : return errors . NewAlreadyExists ( qualifiedResource , name ) case storage . IsUnreachable ( err ) : return errors . NewServerTimeout ( qualifiedResource , " " , 2 ) default : return err } }
InterpretCreateError converts a generic error on a create
operation into the appropriate API error.
InterpretCreateError converts a generic error on a create operation into the appropriate API error .
// TODO: make configurable or handled at a higher level