Not very elegant, but if we can't figure this out, maybe we can use write_handler_response here instead to send a 0 bytes response?