Support for 411 and 413 HTTP error codes

Support to reject a request when the content length is missing or the content length is too large.