Version notice:
HTTP::status¶
Examples¶
when HTTP_RESPONSE {
if { [HTTP::status] == 404 } {
HTTP::redirect "http://www.example.com/not_found.html"
}
}
Related Information¶
Valid Events:
Warning
The links to the sample code below are remnants of the old DevCentral wiki and will result in a 404 error. For best results, please copy the link text and search the codeshare directly on DevCentral.
Sample Code:
- Apache Style Logging Slightly Modified - When SNATing to servers. the client IP is lost. This was information our se…
- Convert 404s to Blank 200s - An iRule to convert an HTTP 404 response to a blank 200 response. HTTP 404…
- Custom Apache-style logging for Java-based applications - I had a requirement to have the F5 BigIP produce logs which replicated our …
- Excessive_404_Blacklist - This iRule will block ALL further site access to source IP addresses that exceed a certain number of HTTP requests to server resources that results in a 404 not found error.
- File Not Found Handler - This iRule will handle HTTP 404 (File Not Found) errors returned from pool members and return an embedded customized error page.
- HTTP method conversion - This is one way that allows you to convert HTTP method from GET to POST or …
- HTTP sideband policy checking - iRule for HTTP sideband policy checking
- Log Http Tcp Udp To Syslogng - You can use iRules to log a summary of each request and its response. and send the data to a remote syslog server using BIG-IP’s syslog-ng daemon.
- Log Tcp And Http Request Response Info Remotely - Log TCP and HTTP request and response details remotely via High Speed Logging
- Microsoft Branch Cache Hash Offload - Hash Offload for Microsoft BranchCache
- Rewriting Single Part HTTP Responses As Multipart - Transform a single part HTTP response into a multi-part response
- Scatter Charting Response Times - This iRule will store response codes. page sizes. and duration and present the data in a scatterchart.
- Javascript Insert v10+ - This is irule that was slightly altered together to insert Javascript code …
- Introduced: BIGIP-9.0.0
The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.