‘NoneType’ object has no attribute ‘HTTP_200_OK’ in Django Rest Framework

Am working on a certain project in drf and i have created a view for searching for job records but whenever i try out my endpoint, i get an error. Below are the relevant code blocks:

models.py

class Customer(models.Model):
    firstname = models.CharField(max_length=100, null=False, blank=False)
    othernames = models.CharField(max_length=100, null=True, blank=False)
    phonenumber_1 = models.CharField(max_length=15, null=False, blank=False)
    phonenumber_2 = models.CharField(max_length=15, null=True, blank=True)
    email = models.EmailField(blank=True, null=True)
    address = models.CharField(max_length=64, null=False, blank=False)
    passport_photo = models.ImageField(upload_to="passport_photos/", null=False, blank=False)
    file_upload = models.FileField(upload_to="uploaded_files/", null=False, blank=False)
    remarks = models.TextField()


class Job(models.Model):
    job_title = models.CharField(max_length=64, null=False, blank=False)
    job_position = models.ForeignKey(JobPosition, null=True, on_delete=models.CASCADE)
    job_field = models.CharField(max_length=64, null=True, blank=True)
    job_description = models.TextField(null=True, blank=True)
    job_company = models.ForeignKey(EmployerCompany, null=True, blank=True, on_delete=models.CASCADE)


class RecruitmentProcess(models.Model):
    STATUS_CHOICES = [
        ('applied', 'Applied'),
        ("pending", "Pending"),
        ('interviewed', 'Interviewed'),
        ('not_hired', 'Not Hired'),
        ('hired', 'Hired'),
        ('rejected_offer', 'Rejected the Offer'),
    ]

    customer = models.ForeignKey(Customer, on_delete=models.CASCADE)
    job = models.ForeignKey(Job, on_delete=models.CASCADE)
    status = models.CharField(max_length=64, choices=STATUS_CHOICES, default='applied')
    application_date = models.DateTimeField(auto_now_add=True)

urls.py

urlpatterns = [
   path('placements/search/', views.search_placement, name='placement_search'),
]

serializers.py

from rest_framework import serializers
from.models import RecruitmentProcess
from rest_framework.response import Response

def create_standard_response(status, message, data=None):
    response = {
        'status': status,
        'message': message,
    }
    if data is not None:
        response['data'] = data
    return Response(response)

class RecruitmentProcessSerializer(serializers.ModelSerializer):
    class Meta(object):
        model = RecruitmentProcess 
        fields = "__all__"

views.py

from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework import status
from .serializers RecruitmentProcessSerializer
from django.db.models import Q

@api_view(['GET'])
def search_placement(request):
    query_params = request.query_params
    filters = Q()

    customer = query_params.get('customer')
    if customer:
        filters &= (Q(customer__firstname__icontains=customer) | 
                    Q(customer__othernames__icontains=customer) | 
                    Q(customer__email__icontains=customer) | 
                    Q(customer__phonenumber_1__icontains=customer) | 
                    Q(customer__phonenumber_2__icontains=customer))

    job = query_params.get('job')
    if job:
        filters &= (Q(job__job_title__icontains=job) | 
                    Q(job__job_field__icontains=job) | 
                    Q(job__job_description__icontains=job) | 
                    Q(job__job_company__name__icontains=job))

    status = query_params.get('status')
    if status:
        filters &= Q(status__icontains=status)

    placements = RecruitmentProcess.objects.filter(filters)
    serializer = RecruitmentProcessSerializer(placements, many=True)

    return create_standard_response(
        status=status.HTTP_200_OK,
        message="Customer search results retrieved successfully",
        data=serializer.data
    )

I have tried testing the endpoint to search for the placements but i keep on getting the below error

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật