code: func interpretStrategicMergePatchError(err error) error {
  	switch err {
  	case mergepatch.ErrBadJSONDoc, mergepatch.ErrBadPatchFormatForPrimitiveList, mergepatch.ErrBadPatchFormatForRetainKeys, mergepatch.ErrBadPatchFormatForSetElementOrderList, mergepatch.ErrUnsupportedStrategicMergePatchFormat:
  		return errors.NewBadRequest(err.Error())
  	case mergepatch.ErrNoListOfLists, mergepatch.ErrPatchContentNotMatchRetainKeys:
  		return errors.NewGenericServerResponse(http.StatusUnprocessableEntity, "", schema.GroupResource{}, "", err.Error(), 0, false)
  	default:
  		return err
  	}
  }
docs: // interpretStrategicMergePatchError interprets the error type and returns an error with appropriate HTTP code.