add written response code to the logger