Did I find the right examples for you? yes no

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

src/a/t/atmosphere-HEAD/api/project.py   atmosphere(Download)
        if data.get('name') == 'Default':
            return Response("The 'Default' project name is reserved",
                            status=status.HTTP_409_CONFLICT)
        #Default to creating for the 'user-group'
        if not data.get('owner'):
            return Response(
                    "The 'Default' project is reserved and cannot be deleted.",
                    status=status.HTTP_409_CONFLICT)
        project = project[0]
        default_project = group.projects.get(name='Default')

src/z/a/zamboni-HEAD/mkt/developers/api_payments.py   zamboni(Download)
        except CantCancel:
            return Response(_('Cannot delete shared account'),
                            status=status.HTTP_409_CONFLICT)
        log.info('Account cancelled: %s' % account.pk)
        return Response(status=status.HTTP_204_NO_CONTENT)

src/z/a/zamboni-HEAD/mkt/webpay/views.py   zamboni(Download)
            log.info('Already purchased: {0}'.format(app.pk))
            return Response({'reason': u'Already purchased app.'},
                            status=status.HTTP_409_CONFLICT)
 
        app_pay_cef.log(request._request, 'Preparing JWT', 'preparing_jwt',

src/a/t/atmosphere-HEAD/api/instance.py   atmosphere(Download)
            logger.exception("Encountered a generic exception. "
                             "Returning 409-CONFLICT")
            return failure_response(status.HTTP_409_CONFLICT,
                                    exc.message)
 

src/a/t/atmosphere-HEAD/api/tag.py   atmosphere(Download)
            app_count = tag.application_set.count()
            return failure_response(
                    status.HTTP_409_CONFLICT,                    
                    "Tag cannot be deleted while it is in use by"
                             "%s instances and %s applications. "

src/z/a/zamboni-HEAD/mkt/api/exceptions.py   zamboni(Download)
class Conflict(APIException):
    status_code = status.HTTP_409_CONFLICT
    default_detail = 'Conflict detected.'
 
    def __init__(self, detail=None):

src/z/e/zeusci-HEAD/zeusci/zeus/api/exceptions.py   zeusci(Download)
class ConflictError(APIException):
    status_code = status.HTTP_409_CONFLICT
 
    def __init__(self, detail):
        self.detail = detail