From 07d22e2de576134628653cefff7755ec6a01d253 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Thu, 23 Dec 2021 10:07:17 +0100 Subject: [PATCH] Add 404 text --- Public/api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Public/api.js b/Public/api.js index e24ff2c..2bd4e39 100644 --- a/Public/api.js +++ b/Public/api.js @@ -83,6 +83,8 @@ function convertServerResponse(response) { throw Error("Please log in again") case 403: // Forbidden throw Error("Invalid username or password") + case 404: // Not found + throw Error("Path not found") case 410: // Gone throw Error("The table could not be found") case 406: // notAcceptable