Permalink
Browse files

Return 404 code/status on NotFound

  • Loading branch information...
1 parent b7d43fe commit 53285fdfebe9fc88b2a4f32ca3edde9602d5abbf @kkolev kkolev committed Mar 10, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 single_file_tasks/src/tasks.py
View
3 single_file_tasks/src/tasks.py
@@ -53,7 +53,8 @@ def close_view(request):
@view_config(context='pyramid.exceptions.NotFound', renderer='notfound.mako')
-def notfound_view(self):
+def notfound_view(request):
+ request.response.status = '404 Not Found'
return {}

0 comments on commit 53285fd

Please sign in to comment.