def get_filediff(self, request, *args, **kwargs):
        review_request_resource = resources.review_request

        try:
            review_request = review_request_resource.get_object(
                request, *args, **kwargs)
        except ObjectDoesNotExist:
            return DOES_NOT_EXIST

        if not review_request_resource.has_access_permissions(request,
                                                              review_request):
            return self.get_no_access_error(request)

        try:
            return resources.filediff.get_object(request, *args, **kwargs)
        except ObjectDoesNotExist:
            return DOES_NOT_EXIST
Returns the FileDiff, or an error, for the given parameters.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/resources/patched_file.py/PatchedFileResource.get_filediff