echo response code , save prefix to db