Forum Discussion

Brian_69413's avatar
Icon for Nimbostratus rankNimbostratus
May 02, 2012

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





HTTP::respond 404




2 Replies

  • HTTP::respond doesn't send any particular content unless you tell it to do so.


    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.