synapse-product/synapse/rest/client
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
..
v1 return NotFoundError if room not found 2018-07-31 21:47:23 +03:00
v1_only Move v1-only APIs into their own module & isolate deprecated ones (#3460) 2018-07-19 20:03:33 +10:00
v2_alpha Refactor REST API tests to use explicit reactors (#3351) 2018-07-17 20:43:18 +10:00
__init__.py copyrights 2016-01-07 04:26:29 +00:00
transactions.py Make auth & transactions more testable (#3499) 2018-07-14 07:34:49 +10:00
versions.py run isort 2018-07-09 16:09:20 +10:00