Bulk API: Fix return of wrong request type on failed updates

In case an update request failed (for example when updating with a
wrongly formatted date), the returned index operation type was index
instead of update.

Closes #6630
added a second commit with delete and update constants, index is not needed as it is always extracted from the request operation type