mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe
synced 2025-05-10 22:49:14 +08:00
Add checks for other common statuses
This commit is contained in:
parent
9ea01762a5
commit
fbb02ebb79
1 changed files with 4 additions and 0 deletions
|
@ -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}`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue