diff --git a/src/utils/request.ts b/src/utils/request.ts index 3d7d0597..8a782d25 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -29,7 +29,7 @@ const kunFetchRequest = async ( const newResponseData = await requestRefresh(fullUrl, options) const data: T = await newResponseData.json() return data - } else if (response.status === 233) { + } else if (!response.ok) { // Handle some known backend error await onRequestError(response) return {} as T