diff --git a/src/http.ts b/src/http.ts index 4fe1ecb..1992d63 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1284,6 +1284,10 @@ export class LemmyHttp { }, }); + if (response.status === 413) { + return { msg: "too_large" }; + } + const responseJson = await response.json(); if (responseJson.msg === "ok") {