in reply to Set HTTP Status code

There isn't enough information to even guess :)

quester has the right idea, always check the logs

Work through these checklists CGI Help Guide and Troubleshooting Perl CGI scripts

Also, post a real program, like Re^4: mod_perl give 404 not_found with content