def update_status(request):
    try:
        service = request.POST.service
        return set_status(request.POST)
    except:
        try:
            service = request.BODY['service']
            return set_status(request.BODY)
        except:
            try:
                service = json.loads(request.BODY)['service']
                return set_status(json.loads(request.BODY))
            except:
                return HttpResponseBadRequest
def form_update_status(request):
    try:
        if request.is_authenticated:
            return set_status(request.FORM)
        else:
            return HttpResponseForbidden
    except:
        return HttpResponseBadRequest