I have an overridden Axios function which helps me make API requests. the implementation of that function is that when the API call fails, it adds attributes in error.
error.