mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-26 15:08:28 +00:00
Return 403s on client API
This commit is contained in:
parent
4d20122d77
commit
dadc00caf1
1 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,10 @@ func JoinRoomByIDOrAlias(
|
|||
JSON: jsonerror.Unknown("The room join will continue in the background."),
|
||||
}
|
||||
case result := <-done:
|
||||
if !result.Is2xx() {
|
||||
// The only error code in the spec for CS /join is 403.
|
||||
result.Code = http.StatusForbidden
|
||||
}
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue