Benoit_Durand
Jan 07, 2020Nimbostratus
Need Help with an iRule to Change HTML Status-Line Text
Greetings and thank you for your time. I have a back end node that provides status code "200" when customers (clients) expect "200 OK" in their own monitors. I tried the snippet below but it drops all subsequent Headers provided by the back end node. Essentially, I simply need to replace "200" with "200 Ok" in the HTML status response provided to the client.
when HTTP_RESPONSE {
if { [HTTP::status] contains "200"} {
HTTP::respond 200 content [HTTP::payload]
}
}