On Mon, Jan 20, 2014 at 5:31 AM, Kalyana sundaram <kalyanceg@xxxxxxxxx> wrote: > > Hi > I am using httpd-2.2.26. Whenever I use LimitRequestBody directive Apache > gives 413 to user if content length is greater than the value specified in > directive but logs as 200. It even appends the response html along with > error document. This problem happens in httpd-2.4.4 also > On further debugging 2.2.26 with gdb i found the problem occurs in > modules/http/http_request.c (ap_process_request) line 291 > > if (access_status == OK) { > ap_finalize_request_protocol(r); > } > else { > r->status = HTTP_OK; > ap_die(access_status, r); > } What module are you using to write the response? ap_die copies the first paraemter to r->status so you shouldn't need something special. A 413 triggers an error reading the request body. If you ignore it, things go wrong. If you return the error you receive, it works. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx