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
parent a9799e66d7
commit 7ad19a3fbb
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 2 additions and 0 deletions

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