rest.response/ok? => rest.response/created? (adapt to ES 1.0 API changes)
Use created?
Native API changes