Wrote on gateway response event