s/fetch_error/error/  and close the connection earlier if there was an error

also when we are not able to compute the digest for the response, there is no
point in trying to send the status response, we can just raise the error flag and close the connection