Forum Discussion
JP_135500
Dec 15, 2015Nimbostratus
Can I use a STREAM profile to replace response status code?
We have a smart 404 page that Google and other bots do not appreciate. It throws a 200 OK instead of a 404 Not Found. I can't do much on the server side to change this behavior, so I am looking to th...
Kai_Wilke
Dec 16, 2015MVP
Hi JP,
UPDATE: Deleted my previous posting to avoid confusion, it has contained somewhat wrong information... 😉
The [STREAM] profile can't be used for this task. You have to collect the [HTTP::payload] of the original response and then create a new [HTTP::response 404] referencing the collected payload.
For further information: https://devcentral.f5.com/questions/changing-http-reponse-status-code
Cheers, Kai
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