Ensure 403 errors are probably handled on the front-end

This commit is contained in:
Eliot Berriot 2018-05-26 12:46:13 +02:00
commit 7ad19a3fbb
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27

View file

@ -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) {