I was trying to put a limit for size of upload files in Imgee by setting MAX_CONTENT_LENGTH (as prescribed in [1]). It raises "413 Request Entity Too Large" when the file size exceeds the limit, as expected. Good so far.
Handling that exception would let go the error and give back response status to be 200, but the browsers complain "The connection to <host> was interrupted." or "The connection to the server was reset while the page was loading". I tried to dig deep to see what's happening but couldn't figure it out.
The code which reproduces it is at [2].
--
~Devi