From 7ad19a3fbb58cb3aadefff86b400c3408796b16e Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Sat, 26 May 2018 12:46:13 +0200 Subject: [PATCH] Ensure 403 errors are probably handled on the front-end --- front/src/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/front/src/main.js b/front/src/main.js index 2e92fbbd2..eb2e3a23d 100644 --- a/front/src/main.js +++ b/front/src/main.js @@ -81,6 +81,8 @@ axios.interceptors.response.use(function (response) { } if (error.response.status === 404) { error.backendErrors.push('Resource not found') + } else if (error.response.status === 403) { + error.backendErrors.push('Permission denied') } else if (error.response.status === 500) { error.backendErrors.push('A server error occured') } else if (error.response.data) {