diff --git a/pkg/kncloudevents/event_dispatcher.go b/pkg/kncloudevents/event_dispatcher.go index f717ddafd8d..8a0176238a0 100644 --- a/pkg/kncloudevents/event_dispatcher.go +++ b/pkg/kncloudevents/event_dispatcher.go @@ -352,6 +352,7 @@ func (d *Dispatcher) executeRequest(ctx context.Context, target duckv1.Addressab var responseMessageBody []byte if err != nil && err != io.EOF { responseMessageBody = []byte(fmt.Sprintf("Failed to read response body: %s", err.Error())) + dispatchInfo.ResponseCode = http.StatusInternalServerError } else { responseMessageBody = body.Bytes() dispatchInfo.ResponseBody = responseMessageBody