def serve_404_error(request, *args, **kwargs):
 access_warn(request, '404 not found')
 return render('404.mako', request, dict(uri=request.build_absolute_uri()), status=404)

def serve_404_error ( request , * args , ** kwargs ) : access_warn ( request , '404 not found' ) return render ( '404.mako' , request , dict ( uri = request . build_absolute_uri ( ) ) , status = 404 )
registered handler for 404 .