wrapper to add timeout to axios request - [x] will throw an error when the timeout is passed and the code in the catch block will be executed.