Add requests error handling