This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Implement MSC3743 (Standardized error response for unknown endpoints) #14209
Closed
Description
MSC3743 describes some "standard error responses" that a homeserver is to implement. Synapse is partially compliant, but needs to:
- Return a 404 instead of a 400 in some cases.
- Return a 404 + JSON body for all
/_matrix/
sub-resources (media and key specifically don't return properly now.) - Return a 405 + JSON body for unknown methods on known resources. (Currently an HTML body is returned.)
This is a bit annoying since Synapse has two separate ways to route to resources:
- Twisted
Resource
(which contain a map to a set of sub-resources). - Custom routing via
RestServlet.PATTERNS
.