synapse-product/synapse/rest/client/v1
Serban Constantin 70af98e361
return NotFoundError if room not found
Per the Client-Server API[0] we should return
`M_NOT_FOUND` if the room isn't found instead
of generic SynapseError.

This ensures that /directory/list API returns
404 for room not found instead of 400.

[0]: https://matrix.org/docs/spec/client_server/unstable.html#get-matrix-client-r0-directory-list-room-roomid

Signed-off-by: Serban Constantin <serban.constantin@gmail.com>
2018-07-31 21:47:23 +03:00
..
__init__.py copyrights 2016-01-07 04:26:29 +00:00
admin.py Merge branch 'develop' of github.com:matrix-org/synapse into erikj/client_apis_move 2018-07-23 13:21:15 +01:00
base.py Make auth & transactions more testable (#3499) 2018-07-14 07:34:49 +10:00
directory.py return NotFoundError if room not found 2018-07-31 21:47:23 +03:00
events.py run isort 2018-07-09 16:09:20 +10:00
initial_sync.py check isort by travis 2018-07-16 13:57:33 +02:00
login.py run isort 2018-07-09 16:09:20 +10:00
logout.py Make auth & transactions more testable (#3499) 2018-07-14 07:34:49 +10:00
presence.py run isort 2018-07-09 16:09:20 +10:00
profile.py run isort 2018-07-09 16:09:20 +10:00
push_rule.py Fix develop because I broke it :( (#3535) 2018-07-14 09:51:00 +10:00
pusher.py rename assert_params_in_request to assert_params_in_dict 2018-07-13 21:53:01 +02:00
room.py make /context lazyload & filter aware (#3567) 2018-07-27 15:12:50 +01:00
voip.py run isort 2018-07-09 16:09:20 +10:00