diff options
author | Serban Constantin <serban.constantin@sparkware.ro> | 2018-07-27 16:19:38 +0300 |
---|---|---|
committer | Serban Constantin <serban.constantin@gmail.com> | 2018-07-31 21:47:23 +0300 |
commit | 70af98e36155ee8d4a0ad79d9d33f891458fd3f6 (patch) | |
tree | 0d6741f46e44dcbd42b610a27828174d09aef844 /changelog.d | |
parent | Merge pull request #3628 from turt2live/travis/goodby-pdu-failures (diff) | |
download | synapse-70af98e36155ee8d4a0ad79d9d33f891458fd3f6.tar.xz |
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>
Diffstat (limited to 'changelog.d')
-rw-r--r-- | changelog.d/2952.bugfix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/2952.bugfix b/changelog.d/2952.bugfix new file mode 100644 index 0000000000..e5bc8a8762 --- /dev/null +++ b/changelog.d/2952.bugfix @@ -0,0 +1 @@ +/directory/list API returns 404 for room not found instead of 400 \ No newline at end of file |