im not sure about the RFC but in my experience i have never seen a response body with a 410 response. a 401 response means that the server requires authentication and the headers should just include the types of authentication that the server accepts
(BASIC, NTLM etc). it *can* include other headers like keep-alive and timeout, but it has no need for a response body since the response is never displayed (eg in the web browser), it is just used to inform the client that it must resend the request with
authentication credentials.
so one possibility is that the web server is sending back a buggy response, ie it should not send back the Chunked encoding header at all.
also i notice that the response above has \r\n\r\n0\r\n\r\n0\r\n\r\n at the end. chunked encoding looks for a single terminating \r\n\r\n0\r\n\r\n, which indicates the end of the http - this response seems to have 2 terminating zero's which would again suggest
that the web server has in this case sent back a buggy response. i would simply handle the exception, and in the handler, parse the response again yourself.