1
0
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:
Andy Balaam
2023-01-09 16:53:52 +00:00
parent 981acf0044
commit c7c16256df

View File

@@ -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, {