apache ErrorDocument 400 /cgi-bin/400.cgi

Hi All,

Sorry if the question is trivial for you but, I am new to Apache (2.0.63) and am trying to figure out how to display my 400.cgi. Here is what I have in httpd.conf

servername testing
DocumentRoot "/usr/local/apache2/htdocs"
ErrorDocument 400 /cgi-bin/badrequest-400.cgi

Here is how I am trying to test it. ( the actual file exist in /usr/local/apache2/cgi-bin/400.cgi)

telnet testing 80
Connected to testing
Escape character is '^]'.
HEAD / HTTP/1.1

HTTP/1.1 400 Bad Request
Date: Tue, 17 Jun 2008 03:04:06 GMT
Server: Web Server
Connection: close
Content-Type: text/html; charset=iso-8859-1

Connection to mgifap10 closed by foreign host.

This is not my 400.cgi. It is the default 400 Bad Request. Can you help me please.