Skip to content
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
@clokep

Description

@clokep

MSC3743 describes some "standard error responses" that a homeserver is to implement. Synapse is partially compliant, but needs to:

  1. Return a 404 instead of a 400 in some cases.
  2. Return a 404 + JSON body for all /_matrix/ sub-resources (media and key specifically don't return properly now.)
  3. 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.

Metadata

Metadata

Assignees

Labels

O-UncommonMost users are unlikely to come across this or unexpected workflowS-MinorBlocks non-critical functionality, workarounds exist.T-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions