handle http 400 properly
This commit is contained in:
parent
2039a0a554
commit
04703cc7e5
|
|
@ -66,7 +66,7 @@ export async function walkFetch(request: Request): Promise<any> {
|
||||||
text: t('general.csrf'),
|
text: t('general.csrf'),
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
} else if (response.status === 403) {
|
} else if (response.status === 403 || response.status === 400) {
|
||||||
showModal({
|
showModal({
|
||||||
mode: 'alert',
|
mode: 'alert',
|
||||||
text: message,
|
text: message,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user