Skip to content

Commit 451be80

Browse files
committed
Updated incorrect http error status codes
1 parent 0178adb commit 451be80

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcss-remote-panel",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"scripts": {
55
"dev": "svelte-kit dev",
66
"build": "svelte-kit build",

src/components/ActionDropdown.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
console.log(data);
4545
})
4646
.catch((error) => {
47-
if (error.status === 403) {
47+
if (error.status === 401) {
4848
logout();
4949
}
5050
});

src/layouts/console.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
}
107107
})
108108
.catch((error) => {
109-
if (error.status === 403) {
109+
if (error.status === 401) {
110110
logout();
111111
} else if (!error.status) {
112112
$isOffline = true;

src/layouts/server.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
console.log(server);
5252
})
5353
.catch((error) => {
54-
if (error.status === 403) {
54+
if (error.status === 401) {
5555
logout();
5656
} else if (!error.status) {
5757
$isOffline = true;

src/layouts/sidebar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
}
7575
})
7676
.catch((error) => {
77-
if (error.status === 403) {
77+
if (error.status === 401) {
7878
logout();
7979
} else if (!error.status) {
8080
$isOffline = true;

0 commit comments

Comments
 (0)