W
Winston Kotzan
Hi,
I have a Perl script that creates dynamic pages using a passed page
variable. If someone tries to access a page that does not exist, I want my
script to send back a custom 404 error. The problem is that I want to make
sure the HTTP 404 status code is sent back to the browser, and not just an
HTTP 200 response with a page displaying an error. The reason is that I
want to see the 404 status code in my Apache server logs. What command can
I use to send the correct HTTP status code?
Thanks.
I have a Perl script that creates dynamic pages using a passed page
variable. If someone tries to access a page that does not exist, I want my
script to send back a custom 404 error. The problem is that I want to make
sure the HTTP 404 status code is sent back to the browser, and not just an
HTTP 200 response with a page displaying an error. The reason is that I
want to see the 404 status code in my Apache server logs. What command can
I use to send the correct HTTP status code?
Thanks.