Rename api.Write to api.WriteResponse.