Forum Discussion
Changing HTTP Reponse status code
Sure, right now what's in place is:
when HTTP_RESPONSE {
if { [HTTP::status] == "404" or [HTTP::status] == "501" }{
HTTP::redirect "/error/404.jsp"
}
}
So what's happening is the 404 response is getting intercepted and replaced with a 302 with the error page URL.
Since the error page exists, when the 302 is followed, you'll get a 200 from that request.
From the client's perspective, they asked for a resource that didn't exist, received a redirect and then a valid response. The valid response is an error page which is obvious to a user, but to an automated system, it appears as though the request was valid.
Does that make more sense?
Thanks,
Ben
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
