1👍
You can return HttpResponse
with a 4xx error code in your view:
def view(request):
return HttpResponse("error", status=404)
Source:stackexchange.com
1👍
You can return HttpResponse
with a 4xx error code in your view:
def view(request):
return HttpResponse("error", status=404)