Changed SetResponseStatusCode to use convention of WriteHeader, added code to calculate bytes_read, altered some of the test code to properly set where to write to.