# HG changeset patch # User Julien Cristau # Date 1459522212 -7200 # Node ID 7e798fe7001433d978f29b4bb9737884629d0c3d # Parent 171e70a7b12119c4f4326055d2fe2ee6276c58c6 [bwcompat] send 403 on authentication errors (closes #12219849) 200 is just wrong. diff -r 171e70a7b121 -r 7e798fe70014 pyramid_cubicweb/bwcompat.py --- a/pyramid_cubicweb/bwcompat.py Fri Apr 01 16:48:14 2016 +0200 +++ b/pyramid_cubicweb/bwcompat.py Fri Apr 01 16:50:12 2016 +0200 @@ -110,6 +110,7 @@ # cubicweb.dbapi._NeedAuthAccessMock. if not content: content = vreg['views'].main_template(req, 'login') + request.response.status_code = 403 request.response.body = content finally: # XXX CubicWebPyramidRequest.headers_out should