From: Ant Zucaro Date: Wed, 28 Jan 2015 00:48:30 +0000 (-0500) Subject: Set status code to 404 for the 404 page. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=85cef4cbe178af60e6e99e0a0daee2c75a182372;p=xonotic%2Fxonstat.git Set status code to 404 for the 404 page. This fixes #1435. --- diff --git a/xonstat/views/exceptions.py b/xonstat/views/exceptions.py index 0cc9148..6d4c9a6 100644 --- a/xonstat/views/exceptions.py +++ b/xonstat/views/exceptions.py @@ -2,4 +2,5 @@ import logging import random def notfound(request): + request.response.status = 404 return {'rand': int(random.random() * 100)}