def METHOD_NAME(request, project_pk=None):
    project = Project.objects.get(pk=project_pk)
    user = request.user
    if not user.can_import_results(project):
        return HttpResponseForbidden()
    status_code, message = project.import_results()
    if status_code == 1:
        data = {'project_id': project_pk, 'import_success': True}
        status = http_status.HTTP_201_CREATED
    else:
        data = {'project_id': project_pk, 'import_success': False, 'message': message}
        status = http_status.HTTP_400_BAD_REQUEST
    return Response(data=data, status=status)