Forum Discussion
Balasubramaniy2
Nimbostratus
Aug 29, 2018Customer Error pages for 400,403,408,500,502,503,504 errors
Hi,
F5 need to respond the custom error page (html file) while getting following response from back-end servers.
Kindly share procedure, how to achieve this.
2 Replies
- jaikumar_f5
Noctilucent
Something like below, you can club few status code with OR operator too if to combine,
when HTTP_RESPONSE { if { [HTTP::status] == "400" } { HTTP::respond 200 content "..." } elseif { [HTTP::status] == "403" } { HTTP::respond 200 content "..." } elseif { [HTTP::status] == "408" } { HTTP::respond 200 content "..." } elseif { [HTTP::status] == "500" } { HTTP::respond 200 content "..." } elseif { [HTTP::status] == "502" } { HTTP::respond 200 content "..." } elseif { [HTTP::status] == "503" } { HTTP::respond 200 content "..." } elseif { [HTTP::status] == "504" } { HTTP::respond 200 content "..." } } - youssef1
Cumulonimbus
Hi,
We manage the same thread:
https://devcentral.f5.com/questions/f5-migration-from-ha-proxy-61356answer157703
I gave an complete example. it can help your.
Regards
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
