s/HttpResponseNotFound('')/Http404/ and similarly for 403.