summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-09-01 15:42:03 +0100
committerErik Johnston <erik@matrix.org>2015-09-01 15:42:03 +0100
commit00149c063b8f81548bd3eefd3e497acc03512d35 (patch)
treea41369fc96299f7e0669b67a7f793296ba9c7961 /synapse/api
parentCheck room exists when authenticating an event, by asserting they reference a... (diff)
downloadsynapse-00149c063b8f81548bd3eefd3e497acc03512d35.tar.xz
Fix tests
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index 410f4c11e7..df7fb6aab7 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -69,7 +69,7 @@ class Auth(object):
 
             if not creation_event:
                 raise SynapseError(
-                    400,
+                    403,
                     "Room %r does not exist" % (event.room_id,)
                 )