Use own .sendResponse function for all responses

Retarget to 0.19.0