Hi All, If I set LimitRequestLine to 128 and If I give any request field whose length is more than 128, apache returns 400 bad request with default xml error response as below.
< HTTP/1.1 400 Bad Request < Content-Length: 278 < Connection: close < Content-Type: text/html; charset=iso-8859-1 < <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>400 Bad Request</title> </head><body> <h1>Bad Request</h1> <p>Your browser sent a request that this server could not understand.<br /> Size of a request header field exceeds server limit.</p> </body></html> * Closing connection #0 Instead of this default xml error response, I am trying to send json formatted customized error response using ErrorDoc directive as below: ErrorDocument 400 /ErrorDocs/custom_error_400.json Unfortunately , this custom error message is not getting picked up by apache while sending the error response, instead it sends the default xml error response. Requesting for help in resolving this . With regards, A