Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/z/a/zamboni-HEAD/mkt/submit/views.py   zamboni(Download)
from rest_framework.permissions import AllowAny
from rest_framework.response import Response
from rest_framework.status import (HTTP_201_CREATED, HTTP_202_ACCEPTED,
                                   HTTP_400_BAD_REQUEST)
from rest_framework.viewsets import GenericViewSet
        upload = self.get_object()
        serializer = self.get_serializer(upload)
        status = HTTP_201_CREATED if upload.processed else HTTP_202_ACCEPTED
        return Response(serializer.data, status=status)
 

src/z/a/zamboni-HEAD/mkt/webpay/views.py   zamboni(Download)
                        'webpay/failure.txt',
                        data, recipient_list=owners)
        return Response(status=status.HTTP_202_ACCEPTED)
 
 
                                           serializer.data['ext_size'],
                                           serializer.data['size'])
            return Response(serializer.data, status=status.HTTP_202_ACCEPTED)
        return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
 

src/p/r/preciosa-HEAD/preciosa/api/views.py   preciosa(Download)
                setattr(user, attribute, value)
        user.save()
        status_ = status.HTTP_202_ACCEPTED
 
    elif request.user.is_authenticated() and not user_data:

src/c/h/ChatSecure-Push-Server-HEAD/push/messages/views.py   ChatSecure-Push-Server(Download)
            send_gcm(token=token, data=message_data)
 
            return Response(serializer.data, status=status.HTTP_202_ACCEPTED)
 
        return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)

src/o/n/onepercentclub-site-HEAD/apps/cowry/views.py   onepercentclub-site(Download)
            return response.Response(data=e, status=status.HTTP_400_BAD_REQUEST)
        else:
            return response.Response(status=status.HTTP_202_ACCEPTED)
 

src/c/o/confine-controller-0.10.5/controller/apps/firmware/api.py   confine-controller(Download)
                raise BaseImageNotAvailable
            async = True
            success_status = status.HTTP_202_ACCEPTED
            if '201-created' == request.META.get('HTTP_EXPECT', None):
                async = False

src/c/o/confine-controller-0.10.5/controller/apps/slices/api.py   confine-controller(Download)
            slice.reset()
            response_data = {'detail': 'Slice instructed to reset'}
            return Response(response_data, status=status.HTTP_202_ACCEPTED)
        raise exceptions.ParseError(detail='This endpoint only accepts null data')
 
            sliver.update()
            response_data = {'detail': 'Sliver instructed to update'}
            return Response(response_data, status=status.HTTP_202_ACCEPTED)
        raise exceptions.ParseError(detail='This endpoint only accepts null data')
 

src/c/o/confine-controller-0.10.5/controller/apps/nodes/api.py   confine-controller(Download)
        node.sign_cert_request(csr.strip())
        response_data = {'detail': 'Sign certificate request accepted'}
        return Response(response_data, status=status.HTTP_202_ACCEPTED)