I currently have some code for a view based on the Django REST Framework. Ive been using a customer exception class, but ideally I want to use the inbuilt Django REST exceptions
You can use the build in DRF exception, just import and raise
from rest_framework.exceptions import ... raise ParseError('I already have a status code!')