Handles errors by checking if the error is an instance of AxiosError.
If it is, it logs an Axios error message and throws a CustomHttpError with the status code.
If not, it logs a non-Axios error message and throws a generic Error with a predefined unknown error message.
Handles errors by checking if the error is an instance of AxiosError. If it is, it logs an Axios error message and throws a CustomHttpError with the status code. If not, it logs a non-Axios error message and throws a generic Error with a predefined unknown error message.