# Reselect pool based http response

**URL:** <https://community.f5.com/t/reselect-pool-based-http-response/5040>\
**Category:** Technical Forums\
**Tags:** irules, application-delivery\
**Created:** [September 5, 2018, 3:22pm UTC](https://community.f5.com/t/reselect-pool-based-http-response/5040 "2018-09-05T15:22:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nizlin\_109172](https://avatars.discourse-cdn.com/v4/letter/n/dc4da7/32.png) [@Nizlin\_109172](https://community.f5.com/u/Nizlin_109172)\
**Post date:** [September 5, 2018, 3:22pm UTC](https://community.f5.com/t/reselect-pool-based-http-response/5040/1 "2018-09-05T15:22:41Z")

</div>

I am looking for an Irule with reselect the members if there is 503 http response code from the server instead of giving the response to the client. We are using the dns pool.

---

<div class="post-metadata">

**Author:** ![Vijay\_E](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@Vijay\_E](https://community.f5.com/u/Vijay_E)\
**Post date:** [September 9, 2018, 4:04am UTC](https://community.f5.com/t/reselect-pool-based-http-response/5040/2 "2018-09-09T04:04:22Z")

</div>

I have never tried this. You may have to test it out in a test VIP before implementing it:

```tcl
when HTTP_RESPONSE { 
if { [HTTP::status] contains "503" } {
persist none
LB::detach
LB::reselect pool <>
} 
}

```

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [September 9, 2018, 11:20am UTC](https://community.f5.com/t/reselect-pool-based-http-response/5040/3 "2018-09-09T11:20:16Z")

</div>

Both examples in the wiki article for **HTTP::retry** show how to do this:

> **[DevCentral - An F5 Technical Community](https://community.f5.com/)**
>
> DevCentral is an online technical community where engineers and practitioners collaborate, share knowledge, and solve problems related to F5 technologies and industry trends.
