Axios Error to Http
npm i axios-error-to-http
Handle annoying gigantic axios errors:
const httpError = (error as AxiosError)?.isAxiosError
? axiosErrorToHttp(error as AxiosError)
: error;
console.error(httpError);
Peer dependcies are axios and http-errors.