# Exit code 000 after snapshot

**URL:** <https://discuss.elastic.co/t/exit-code-000-after-snapshot/69678>\
**Category:** Elasticsearch\
**Created:** [December 21, 2016, 2:33pm UTC](https://discuss.elastic.co/t/exit-code-000-after-snapshot/69678 "2016-12-21T14:33:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alberto](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@alberto](https://discuss.elastic.co/u/alberto)\
**Post date:** [December 21, 2016, 2:33pm UTC](https://discuss.elastic.co/t/exit-code-000-after-snapshot/69678/1 "2016-12-21T14:33:20Z")

</div>

Hello, I use the standard method to produce snapshots of my es index and I try to verify for any problem. So I check in this way:

VERIFY\_RESPONSE=$(curl --write-out %{http\_code} --silent --output ${tempfile} -XPUT "http://${SERVER\_FQDN}:${SERVER\_PORT}/\_snapshot/${REPO}/${SNAP\_NAME}?wait\_for\_completion=true")  
if ["${VERIFY\_RESPONSE}" -eq "200"]  
then ....

I notice that sometimes the exit code is not '200' but it is '000'; I cannot understand if it is an error or not. Can you explain, please?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 27, 2016, 8:57am UTC](https://discuss.elastic.co/t/exit-code-000-after-snapshot/69678/2 "2016-12-27T08:57:40Z")

</div>

It will never return a 000, sounds like something else.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 24, 2017, 8:57am UTC](https://discuss.elastic.co/t/exit-code-000-after-snapshot/69678/3 "2017-01-24T08:57:40Z")

</div>

Closed on January 24, 2017, 8:57am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
