# How to retry request to downstream based on response headers status code

**URL:** <https://discuss.konghq.com/t/how-to-retry-request-to-downstream-based-on-response-headers-status-code/10123>\
**Category:** General\
**Created:** [April 28, 2022, 9:13am UTC](https://discuss.konghq.com/t/how-to-retry-request-to-downstream-based-on-response-headers-status-code/10123 "2022-04-28T09:13:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanthnallapa23](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@srikanthnallapa23](https://discuss.konghq.com/u/srikanthnallapa23)\
**Post date:** [April 28, 2022, 9:13am UTC](https://discuss.konghq.com/t/how-to-retry-request-to-downstream-based-on-response-headers-status-code/10123/1 "2022-04-28T09:13:52Z")

</div>

The request here is that, I want to use retry feature in kong but it should be based on response headers.

Ex : if downstream system respond with status code as 502 then I want to retry 3times. - please let me know, do we have feasibility here ? if yes how to do that in Kubernets
