Skip to content
This repository
Browse code

Merge pull request #22 from kkolev/status_404

Return 404 code/status on NotFound
  • Loading branch information...
commit 76803def25da71bb33179f11f826756a946d27ee 2 parents 6205e4f + 53285fd
Tres Seaver tseaver authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  single_file_tasks/src/tasks.py
3  single_file_tasks/src/tasks.py
@@ -53,7 +53,8 @@ def close_view(request):
53 53
54 54
55 55 @view_config(context='pyramid.exceptions.NotFound', renderer='notfound.mako')
56   -def notfound_view(self):
  56 +def notfound_view(request):
  57 + request.response.status = '404 Not Found'
57 58 return {}
58 59
59 60

0 comments on commit 76803de

Please sign in to comment.
Something went wrong with that request. Please try again.