mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-16 12:52:14 -04:00
Respond with proper error responses on unknown paths. (#14621)
Returns a proper 404 with an errcode of M_RECOGNIZED for unknown endpoints per MSC3743.
This commit is contained in:
parent
da77720752
commit
9d8a3234ba
9 changed files with 32 additions and 14 deletions
|
@ -3994,7 +3994,7 @@ class ShadowBanRestTestCase(unittest.HomeserverTestCase):
|
|||
"""
|
||||
Tests that shadow-banning for a user that is not a local returns a 400
|
||||
"""
|
||||
url = "/_synapse/admin/v1/whois/@unknown_person:unknown_domain"
|
||||
url = "/_synapse/admin/v1/users/@unknown_person:unknown_domain/shadow_ban"
|
||||
|
||||
channel = self.make_request(method, url, access_token=self.admin_user_tok)
|
||||
self.assertEqual(400, channel.code, msg=channel.json_body)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue