1 import { createApiError } from './ApiError';
3 export const checkStatus = (response: Response, config: any): Response | Promise<never> => {
4 const { status } = response;
6 if (status >= 200 && status < 300) {
16 throw createApiError('StatusCodeError', response, config, data);