You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-04 05:02:41 +03:00
Update comment to reflect commonality between 404 and 405 status
This commit is contained in:
@@ -9423,10 +9423,10 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
||||
// when Synapse is compliant with MSC3743.
|
||||
((<MatrixError>err).httpStatus === 400 ||
|
||||
// This the correct standard status code for an unsupported
|
||||
// endpoint according to MSC3743.
|
||||
// endpoint according to MSC3743. Not Found and Method Not Allowed
|
||||
// both indicate that this endpoint+verb combination is
|
||||
// not supported.
|
||||
(<MatrixError>err).httpStatus === 404 ||
|
||||
// This the correct standard status code for an invalid
|
||||
// method according to MSC3743.
|
||||
(<MatrixError>err).httpStatus === 405)
|
||||
) {
|
||||
return await this.http.authedRequest(Method.Get, path, queryParams, undefined, {
|
||||
|
||||
Reference in New Issue
Block a user