send header response to ajax