Skip to content

Commit f018f06

Browse files
committed
💄 added more details to the error code
1 parent 2088b39 commit f018f06

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

js/errorHandler.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ if (msg && errorMessageEl) {
1212
}
1313

1414
if (errorCodeEl) {
15-
errorCodeEl.textContent = (paramCode || "404").toString();
15+
if (paramCode === "403") {
16+
errorCodeEl.textContent = "403 - Forbidden";
17+
} else
18+
errorCodeEl.textContent = (paramCode || "404").toString();
1619
}
1720

1821
function handleErrorAndRedirect(message, code = 404) {

0 commit comments

Comments
 (0)