Forum Discussion
GavinW_29074
Sep 27, 2011Nimbostratus
Catching Timeout and HTTP 502/503 Errors
Hi there,
Next question... One of the items that we've got set-up on our current Apache set-up is the ability to catch a 502 "Bad Gateway" and 503 "Service Unavailable" and return a 'Sorry,...
Patrick_Chang_7
Sep 27, 2011Historic F5 Account
I would do something like the following:
when RULE_INIT {
set static::sorryPage {insert desired HTML here}
}
when HTTP_RESPONSE {
if { [HTTP::status] == 502 or [HTTP::status] =503 } {
clientside { HTTP::respond $static::sorryPage }
}
}
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