Return detailed alert on HTTP 502
This commit is contained in:
parent
3983337ec2
commit
0a3cd3fc05
|
@ -35,6 +35,10 @@ export function showAlertForError(error) {
|
||||||
if (error.response) {
|
if (error.response) {
|
||||||
const { data, status, statusText } = error.response;
|
const { data, status, statusText } = error.response;
|
||||||
|
|
||||||
|
if (status === 502) {
|
||||||
|
return showAlert('', 'The server is down', 'error');
|
||||||
|
}
|
||||||
|
|
||||||
if (status === 404 || status === 410) {
|
if (status === 404 || status === 410) {
|
||||||
// Skip these errors as they are reflected in the UI
|
// Skip these errors as they are reflected in the UI
|
||||||
return {};
|
return {};
|
||||||
|
|
Loading…
Reference in New Issue