Upgrade to Axios 1.x
I discovered that Axios 1.x is a thing that happened, and we are using version 0.21.4. Version 1 has better TypeScript support, especially for the HTTP exception classes, and defines a whole enum for HTTP status codes just like rest_framework.status
. The better typing will solve some issues I am having with typing src/main.ts
among others. v1 changes a lot of things so we need to be a little careful.