# If Response code is other than 200 repeat output

**URL:** <https://discuss.elastic.co/t/if-response-code-is-other-than-200-repeat-output/82502>\
**Category:** Logstash\
**Created:** [April 16, 2017, 2:15pm UTC](https://discuss.elastic.co/t/if-response-code-is-other-than-200-repeat-output/82502 "2017-04-16T14:15:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkhapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkhapre/32/48333_2.png) [@rkhapre](https://discuss.elastic.co/u/rkhapre)\
**Post date:** [April 16, 2017, 2:15pm UTC](https://discuss.elastic.co/t/if-response-code-is-other-than-200-repeat-output/82502/1 "2017-04-16T14:15:41Z")

</div>

Hi All

I am using http output plugin, i get response either 200 ( Success) and 531 (Failure)

531: Failure is because of network traffic

I want 531 which is failure, the output plugin should retry to insert the record till the response is 200

Can we achieve something like this?

---

<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:** [May 14, 2017, 2:27pm UTC](https://discuss.elastic.co/t/if-response-code-is-other-than-200-repeat-output/82502/2 "2017-05-14T14:27:36Z")

</div>

Closed on May 14, 2017, 2:27pm UTC

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