code: def cancel(self, request, *args, **kwargs):  # pylint: disable=unused-argument
          
          status = self.get_object()
          status.cancel()
          serializer = StatusSerializer(status, context={'request': request})
          return Response(serializer.data)
docs: Cancel the task associated with the specified status record.
  
          Arguments:
              request (Request): A POST including a task status record ID
  
          Returns
          -------
              Response: A JSON response indicating whether the cancellation succeeded or not