Skip to content
Snippets Groups Projects
Verified Commit 7ad19a3f authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Ensure 403 errors are probably handled on the front-end

parent a9799e66
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment