Forum Discussion
Vikasverma31_13
Nimbostratus
Sep 05, 2013check for http response 404 for every request
Hi
I'm new to F5 I have a problem where if my server is not available the https error code is 404, then I need to send customized response to the client in xml.
Please help me how to achieve it.
Regards, Vikas
1 Reply
- Kevin_Stewart
Employee
Try this:
when HTTP_RESPONSE { if { [HTTP::status] == 404 } { HTTP::respond 200 content "..." } }The status code (200) is completely arbitrary here, as is the content.
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