diff --git a/web/src/elements/messages/Middleware.ts b/web/src/elements/messages/Middleware.ts index b01861950..320cdc74f 100644 --- a/web/src/elements/messages/Middleware.ts +++ b/web/src/elements/messages/Middleware.ts @@ -6,7 +6,7 @@ import { showMessage } from "./MessageContainer"; export class MessageMiddleware implements Middleware { post(context: ResponseContext): Promise { - if (!context.response.ok) { + if (context.response.status >= 500) { showMessage({ level: MessageLevel.error, message: gettext("API request failed"),