Forum Discussion
Moinul_Rony
Altostratus
Sep 19, 2013iRule to catch 4XX and 5XX HTTP error codes.
Hi,
Is there any way to catch all 4XX and 5XX http error codes rather then specifying individually ie. 404, 500, 400 etc ?
I am trying to set a friendly error page response to client when the se...
swo0sh_gt_13163
Altostratus
Mar 09, 2014Hello Folks,
Got a similar one, thought to share.
when HTTP_REQUEST {
set hostvar [HTTP::host]
set urivar [HTTP::uri]
set ipvar [IP::client_addr]
}
when HTTP_RESPONSE {
if { [HTTP::status] starts_with "5" } {
log local0. "$ipvar requested $hostvar $urivar and received a [HTTP::status] from [IP::server_addr]" }
}
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