how to return http status code django code example Example: httpresponse django from django.http import HttpResponse