I manage the "real" 404 errors in this way:
application = webapp.WSGIApplication([
('/', MainPage),
#Some others urls
('/.*',Trow404) #I got the 404 page
],debug=False)
But in some parts of my code i throw a 404 error
self.error(404)
and i wanna show the same page that mentioned before, ¿there is any way to catch the 404 error and manage it?
I can redirect to some inexistent url, but looks ugly