Did I find the right examples for you? yes no

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

src/d/r/drf_to_s3-0.7.7/drf_to_s3/s3.py   drf_to_s3(Download)
        )
    except S3ResponseError as e:
        if e.status in [status.HTTP_404_NOT_FOUND, status.HTTP_412_PRECONDITION_FAILED]:
            raise ObjectNotFoundException()
        else:

src/d/r/drf-extensions-0.2.3/rest_framework_extensions/etag/decorators.py   drf-extensions(Download)
            }
        )
        return Response(status=status.HTTP_412_PRECONDITION_FAILED)
 
 

src/d/r/drf-to-s3-HEAD/drf_to_s3/s3.py   drf-to-s3(Download)
        )
    except S3ResponseError as e:
        if e.status in [status.HTTP_404_NOT_FOUND, status.HTTP_412_PRECONDITION_FAILED]:
            raise ObjectNotFoundException()
        else:

src/d/j/django-services-0.0.8/django_services/api/api.py   django-services(Download)
    def decorator(*arg, **kwargs):
        try:
            return func(*arg, **kwargs)
        except InvalidOperationException, e:
            return Response(status=status.HTTP_412_PRECONDITION_FAILED, data={'detail': e.message}, headers={'Content-Type': 'application/json'})