Try to resolve this: https://github.com/OpenFunction/functions-framework-nodejs/pull/10#discussion_r875822916 > One more thing, I think go ff's handling of function output and return error is more reasonable. > What if send fails? Here're more refs: > * automatically set http ret code based on function error code [https://github.com/OpenFunction/functions-framework-go/blob/main/runtime/knative/knative.go#L66](https://github.com/OpenFunction/functions-framework-go/blob/main/runtime/knative/knative.go?rgh-link-date=2022-05-18T12%3A19%3A04Z#L66) > * encapsule function output into context: [OpenFunction/functions-framework-go@f1e311b/runtime/runtime.go#L134](https://github.com/OpenFunction/functions-framework-go/blob/f1e311b3bf253b00c3cf494826f57acd22224016/runtime/runtime.go#L134) > * return error in function when send fails or other errors occur : [https://github.com/OpenFunction/samples/blob/main/functions/knative/with-output-binding/sender.go#L23](https://github.com/OpenFunction/samples/blob/main/functions/knative/with-output-binding/sender.go?rgh-link-date=2022-05-18T12%3A19%3A04Z#L23)
Try to resolve this: #10 (comment)