internally, http.Error uses fmt.Fprintln() which will append a newline to what should be an empty response body. In one of my previous tests, this was causing spurious errors. I've since rewritten that test, but still best to avoid it here.