appbaseio / appbase-js

appbase.io search client library for JavaScript
MIT License
42 stars 18 forks source link

.delete() method should return a 404 error when trying to delete a doc with an invalid id #11

Closed siddharthlatest closed 2 years ago

siddharthlatest commented 8 years ago

Code to reproduce the behavior - https://jsfiddle.net/yashshah/cjv3y0t8/.

Since Elasticsearch returns a 404 error in this scenario: https://i.imgur.com/fTRoCKU.png, we should make the lib follow the same logic.