1
0
Fork 0
mirror of https://akkoma.dev/AkkomaGang/akkoma-fe synced 2025-05-21 02:39:12 +08:00

Add checks for other common statuses

This commit is contained in:
FloatingGhost 2022-06-26 19:57:54 +01:00
parent 9ea01762a5
commit fbb02ebb79

View file

@ -467,6 +467,10 @@ const errorStatusMapper = (response) => {
switch (response.status) {
case 429:
return 'You are rate limited'
case 500:
return 'Internal Server Error'
case 503:
return 'The backend is not available'
default:
return `Unexpected status: ${response.status}`
}