changeset 891:14e611e38b67

server (blog): set HTTP status code to 500 on renderError
author Goffi <goffi@goffi.org>
date Fri, 18 Mar 2016 14:29:24 +0100
parents dc27e29b7c22
children bf2af257e18b
files src/server/blog.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/blog.py	Thu Mar 17 18:42:15 2016 +0100
+++ b/src/server/blog.py	Fri Mar 18 14:29:24 2016 +0100
@@ -529,6 +529,7 @@
         return BlogImage(url, alt)
 
     def renderError(self, failure, request, pub_jid):
+        request.setResponseCode(500)
         request.write(self.useTemplate(request, "static_blog_error", {'message': "Can't access requested data"}))
         request.finish()