Skip to content

Commit

Permalink
Fix federation/token request body, move errors to other file
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfl0wer committed Dec 27, 2023
1 parent 1fff76b commit f538d6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 2 additions & 7 deletions docs/APIs/Core/Server-Client API/Routes/federation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Federation tokens are signed using the home server's public signing key, so that
```json
{
"server": "https://server.example.com"

}
```

#### Response
Expand All @@ -36,12 +36,7 @@ Federation tokens are signed using the home server's public signing key, so that

##### Body

```json
{
"errcode": "PR_NOT_FEDERATED",
"error": "The server you are trying to generate a token for does not federate with this server. Either this server does not have federation enabled or at least one of the servers has denied federation with the other. Check with a server administrator for more information."
}
```
--8<-- "snippets/errors/404-not_federated.md"

---

Expand Down
6 changes: 6 additions & 0 deletions snippets/errors/404-not_federated.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```json
{
"errcode": "P2CORE_NOT_FEDERATED",
"error": "The server you are trying to generate a token for does not federate with this server. Either this server does not have federation enabled or at least one of the servers has denied federation with the other. Check with a server administrator for more information."
}
```

0 comments on commit f538d6c

Please sign in to comment.