matrix-org / matrix-org/matrix-spec

Consider having "no known servers" be a dedicated error code

Open
#312 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-Client-Server enhancement
Dominant language
HTML
Stars
330
Forks
150
Avg merge
2h 21m
Merged PRs (30d)
3

Description

There are a couple places where the action may not be able to be performed due to the lack of servers in the room. The easiest case is joining rooms. Currently synapse gives a 404 M_UNKNOWN error back to the client, which doesn't help for things like acceptance tests for things running against matrix or clients which want to be more proactive.

Adding and using a new error code (M_NO_SERVERS?) would be nice to have.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the specification sections for joining rooms and the current M_UNKNOWN response; the issue does not name files or tests. Determine the scope and semantics of a dedicated no-servers error code, then document and reference it wherever the lack-of-servers condition applies.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.