writes question response code