docs: def set_response_headers(self, request, total_count):
          '''
          Set the correct range headers on the response
  
          :param request: a request object
          :param total_count: the total number of results
          '''
          response = request.response
          response.headerlist.append(('Access-Control-Expose-Headers', 'Content-Range, X-Content-Range'))
          response.accept_ranges = 'items'
          if total_count is None:
              raise RangeParseException('Provided length value is null')
          if total_count > 0:
              response.content_range = self.content_range(total_count)
  
          self.set_link_headers(request, total_count)