The status of responseWriter will be overwrite if flush was called. This is caused by the Flush of http.response.Flush().