From c7c16256dfd0ead12f30f21a64544b8dbf8d66ec Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Mon, 9 Jan 2023 16:53:52 +0000 Subject: [PATCH] Update comment to reflect commonality between 404 and 405 status --- src/client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.ts b/src/client.ts index f39bbf718..6a7735b51 100644 --- a/src/client.ts +++ b/src/client.ts @@ -9423,10 +9423,10 @@ export class MatrixClient extends TypedEventEmittererr).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. (err).httpStatus === 404 || - // This the correct standard status code for an invalid - // method according to MSC3743. (err).httpStatus === 405) ) { return await this.http.authedRequest(Method.Get, path, queryParams, undefined, {