Naikkan kesalahan API pada tampilan Django Rest
from rest_framework.exceptions import APIException
def my_view(request):
raise APIException("There was a problem!")
Yucky Yak