def METHOD_NAME(request, callback, *args, **kwargs):
    uuid = kwargs.get('qquuid', '')
    if uuid:
        try:
            callback(uuid=uuid)
        except CallbackError as e:
            return make_response(status=400,
                content=json.dumps({
                    'success': False,
                    'error': '%s' % repr(e)
                }))
        except Exception as e:
            return make_response(status=500,
                content=json.dumps({
                    'success': False,
                    'error': 'Exception thrown by callback'
                }))
        return make_response(content=json.dumps({ 'success': True }))
    return make_response(status=404,
        content=json.dumps({
            'success': False,
            'error': 'File not present'
        }))