Even though this is not a Perl-specific response, here is
a list of http ErrorDocument types:
Incidentally, I tried your code and it works fine. If you
uploaded the file from a PC, you may want to check for
control M's. This has caught me in the past (before I
learned vi). You will see the following in your file if this is the case: