custom http 400 error page

1 post / 0 new
#1 Sat, 02/01/2014 - 04:12
amitashok

custom http 400 error page

HI ,

I want to change the default error message for http 400 error with my error message .

I have made changes in httpd.conf but the same is not reflection in the response pages .

i have made 2 changes to httpd.conf

  1. uncommented ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  2. changed ErrorDocument 400 ":AGPRSOKB; 400 error " to display :AGPRSOKB; as the error message as the message when http 400 takes place .

I restarted the apache after making the changes.

but i am still getting the same html error .

HTTP/1.1 400 Bad RequestDone Date: Sat, 01 Feb 2014 09:26:36 GMTDone Server: Apache/2.2.15Done Content-Length: 226Done Connection: closeDone Content-Type: text/html; charset=iso-8859-1Done Done Done Done 400 Bad RequestDone Done

Bad Request

Done

<

p>Your browser sent a request that this server could not understand.

I am unable to understand if I need to make any other change .

Thanks