replace Http404 with more appropriate methods