title: no response from nginx server when file exceeds 'client_max_body_size'
body: <p>On the nginx server the client_max_body_size is set to 10M.</p>
  
  <p>When trying to upload a file larger than 10mb (through AJAX), the request (obviously) fails, but with an empty response. According to <a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size" rel="nofollow noreferrer">here</a> this is a known issue with browsers. </p>
  
  <p>I need a concrete way to ascertain that the reason the request failed was because the file was too large. If I were to get the 413 error that would be good enough, but I receive an empty response.</p>
  
  <p>I can not rely solely on client side validation when sending the file.</p>
  
  <p>How can I check that the reason the file upload failed is because it exceeds the client_max_body_size?</p>