http flush: error message cleanup