Forum Discussion
Brian_69413
May 02, 2012Nimbostratus
HTTP::repond 404 returns blank page
When I use the line HTTP::respond 404 within the HTTP_REQUEST event, the user receives a blank page instead of a 404. Does anyone have an idea on this? I am running 10.2.1 HF2
when HTTP_REQ...
Joel_Moses
May 02, 2012Nimbostratus
HTTP::respond doesn't send any particular content unless you tell it to do so.
Try:
when HTTP_REQUEST {
HTTP::respond 404 content "404 File Not Found" Mime-Type "text/html"
}
You can of course alter the content that it sends within the quotes.
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