Fix incorrect return-value when responsing data to a client