Skip to content

Commit

Permalink
Return 404 code/status on NotFound
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristian Kolev committed Mar 10, 2013
1 parent b7d43fe commit 53285fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion single_file_tasks/src/tasks.py
Expand Up @@ -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 {}


Expand Down

0 comments on commit 53285fd

Please sign in to comment.