'Returns a tuple of (channel_obj, error). Callers of this method should check whether the channel_obj is None and
if so, return the error.'

def get_my_channel_obj_or_error(self, request):

    channel_info = self.get_channel_from_db(self.cid)
    if (channel_info is None):
        return (None, BaseChannelsRssFeedsEndpoint.return_404(request))
    if (channel_info[0] != self.channel_db_handler.getMyChannelId()):
        return (None, BaseChannelsRssFeedsEndpoint.return_401(request))
    channel_obj = self.get_my_channel_object()
    if (channel_obj is None):
        return (None, BaseChannelsRssFeedsEndpoint.return_404(request))
    return (channel_obj, None)
